| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("OrderHistoryOneCPostings")] |
| | | 7 | | public class OrderHistoryOneCPosting |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
| | 2 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | 42 | 13 | | public int OrderId { get; set; } |
| | | 14 | | |
| | 12 | 15 | | public int? TransactionId { get; set; } |
| | | 16 | | |
| | | 17 | | [MaxLength(32)] |
| | 52 | 18 | | public string OperationKind { get; set; } = string.Empty; |
| | | 19 | | |
| | 22 | 20 | | public bool Success { get; set; } |
| | | 21 | | |
| | 39 | 22 | | public DateTime PostedAt { get; set; } |
| | | 23 | | |
| | | 24 | | [MaxLength(255)] |
| | 12 | 25 | | public string? ChangedBy { get; set; } |
| | | 26 | | |
| | | 27 | | [MaxLength(128)] |
| | 13 | 28 | | public string? HistoryBatchKey { get; set; } |
| | | 29 | | |
| | | 30 | | [MaxLength(255)] |
| | 12 | 31 | | public string? OrganizationName { get; set; } |
| | | 32 | | |
| | | 33 | | [MaxLength(64)] |
| | 12 | 34 | | public string? OrganizationInn { get; set; } |
| | | 35 | | |
| | | 36 | | [MaxLength(255)] |
| | 12 | 37 | | public string? SenderName { get; set; } |
| | | 38 | | |
| | | 39 | | [MaxLength(64)] |
| | 12 | 40 | | public string? SenderInn { get; set; } |
| | | 41 | | |
| | | 42 | | [MaxLength(255)] |
| | 12 | 43 | | public string? WarehouseSender { get; set; } |
| | | 44 | | |
| | | 45 | | [MaxLength(255)] |
| | 12 | 46 | | public string? WarehouseRecipient { get; set; } |
| | | 47 | | |
| | 12 | 48 | | public int OrdersCount { get; set; } |
| | | 49 | | |
| | 12 | 50 | | public int ProductsCount { get; set; } |
| | | 51 | | |
| | | 52 | | [MaxLength(500)] |
| | 12 | 53 | | public string? ArticlesSummary { get; set; } |
| | | 54 | | |
| | 12 | 55 | | public int DocumentsCount { get; set; } |
| | | 56 | | |
| | | 57 | | [MaxLength(1000)] |
| | 12 | 58 | | public string? DocumentNumbers { get; set; } |
| | | 59 | | |
| | | 60 | | /// <summary>Ref_Key GUID-ы документов 1С через запятую — для поиска и перехода в 1С Fresh.</summary> |
| | | 61 | | [MaxLength(2000)] |
| | 12 | 62 | | public string? DocumentGuids { get; set; } |
| | | 63 | | |
| | | 64 | | /// <summary>Все документы успешно проведены (Posted=true) в 1С.</summary> |
| | 35 | 65 | | public bool IsPosted { get; set; } |
| | | 66 | | |
| | | 67 | | [MaxLength(2000)] |
| | 26 | 68 | | public string? ErrorSummary { get; set; } |
| | | 69 | | |
| | | 70 | | [Column(TypeName = "longtext")] |
| | 13 | 71 | | public string? DetailsJson { get; set; } |
| | | 72 | | |
| | 49 | 73 | | public DateTime CreatedAt { get; set; } = DateTime.UtcNow; |
| | | 74 | | |
| | 43 | 75 | | public virtual ICollection<OrderHistoryOneCPostingLink> HistoryLinks { get; set; } = new List<OrderHistoryOneCPostin |
| | | 76 | | } |