| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("MlAutoOrders")] |
| | | 7 | | public sealed class MlAutoOrder |
| | | 8 | | { |
| | 23 | 9 | | public long Id { get; set; } |
| | 49 | 10 | | [Required, MaxLength(50)] public string OrderNumber { get; set; } = string.Empty; |
| | 24 | 11 | | [Required, MaxLength(50)] public string DeliveryAddressId { get; set; } = string.Empty; |
| | 2 | 12 | | [MaxLength(300)] public string? DeliveryAddressName { get; set; } |
| | 24 | 13 | | public bool IsCashless { get; set; } = true; |
| | 24 | 14 | | [Required, MaxLength(50)] public string Status { get; set; } = "Created"; |
| | 0 | 15 | | [MaxLength(450)] public string? CreatedBy { get; set; } |
| | 0 | 16 | | public string? RequestJson { get; set; } |
| | 0 | 17 | | public string? ResponseJson { get; set; } |
| | 24 | 18 | | public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow; |
| | 24 | 19 | | public ICollection<MlAutoOrderItem> Items { get; set; } = new List<MlAutoOrderItem>(); |
| | | 20 | | } |
| | | 21 | | |
| | | 22 | | [Table("MlAutoOrderItems")] |
| | | 23 | | public sealed class MlAutoOrderItem |
| | | 24 | | { |
| | | 25 | | public long Id { get; set; } |
| | | 26 | | public long MlAutoOrderId { get; set; } |
| | | 27 | | public MlAutoOrder MlAutoOrder { get; set; } = null!; |
| | | 28 | | public long? MlAutoCartItemId { 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 | | } |