| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("MlAutoRuOrders")] |
| | | 7 | | public sealed class MlAutoRuOrder |
| | | 8 | | { |
| | 14 | 9 | | public long Id { get; set; } |
| | 51 | 10 | | [Required, MaxLength(50)] public string OrderNumber { get; set; } = string.Empty; |
| | 48 | 11 | | [Required, MaxLength(50)] public string DeliveryAddressId { get; set; } = string.Empty; |
| | 15 | 12 | | [MaxLength(300)] public string? DeliveryAddressName { get; set; } |
| | 39 | 13 | | public bool IsCashless { get; set; } = true; |
| | 52 | 14 | | [Required, MaxLength(50)] public string Status { get; set; } = "Created"; |
| | 16 | 15 | | [MaxLength(450)] public string? CreatedBy { get; set; } |
| | 13 | 16 | | public string? RequestJson { get; set; } |
| | 26 | 17 | | public string? ResponseJson { get; set; } |
| | 26 | 18 | | public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow; |
| | 52 | 19 | | public ICollection<MlAutoRuOrderItem> Items { get; set; } = new List<MlAutoRuOrderItem>(); |
| | | 20 | | } |
| | | 21 | | |
| | | 22 | | [Table("MlAutoRuOrderItems")] |
| | | 23 | | public sealed class MlAutoRuOrderItem |
| | | 24 | | { |
| | | 25 | | public long Id { get; set; } |
| | | 26 | | public long MlAutoRuOrderId { get; set; } |
| | | 27 | | public MlAutoRuOrder MlAutoRuOrder { get; set; } = null!; |
| | | 28 | | public long? MlAutoRuCartItemId { get; set; } |
| | | 29 | | public int StudioOrderId { get; set; } |
| | | 30 | | [Required, MaxLength(60)] public string Pin { get; set; } = string.Empty; |
| | | 31 | | [Required, MaxLength(100)] public string Brand { get; set; } = string.Empty; |
| | | 32 | | public decimal Quantity { get; set; } |
| | | 33 | | public decimal? Price { get; set; } |
| | | 34 | | [MaxLength(8)] public string? CurrencyCode { get; set; } |
| | | 35 | | [MaxLength(1000)] public string? Error { get; set; } |
| | | 36 | | } |