| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("BitrixStockPushItems")] |
| | | 7 | | public class BitrixStockPushItem |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
| | 0 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | 200 | 13 | | public long ExecutionId { get; set; } |
| | | 14 | | |
| | 0 | 15 | | public int SortOrder { get; set; } |
| | | 16 | | |
| | | 17 | | [MaxLength(200)] |
| | 0 | 18 | | public string? Article { get; set; } |
| | | 19 | | |
| | | 20 | | [Required] |
| | | 21 | | [MaxLength(200)] |
| | 200 | 22 | | public string OfferId { get; set; } = string.Empty; |
| | | 23 | | |
| | 0 | 24 | | public long ProductId { get; set; } |
| | | 25 | | |
| | 0 | 26 | | public long WarehouseId { get; set; } |
| | | 27 | | |
| | | 28 | | [MaxLength(200)] |
| | 0 | 29 | | public string? WarehouseName { get; set; } |
| | | 30 | | |
| | | 31 | | [Required] |
| | | 32 | | [MaxLength(200)] |
| | 200 | 33 | | public string OzonClient { get; set; } = string.Empty; |
| | | 34 | | |
| | | 35 | | [MaxLength(200)] |
| | 0 | 36 | | public string? LinkedStoreName { get; set; } |
| | | 37 | | |
| | 200 | 38 | | public int PreviousStock { get; set; } |
| | | 39 | | |
| | 200 | 40 | | public int TargetStock { get; set; } |
| | | 41 | | |
| | | 42 | | [Required] |
| | | 43 | | [MaxLength(50)] |
| | 200 | 44 | | public string Status { get; set; } = BitrixStockPushItemStatus.Pending; |
| | | 45 | | |
| | 0 | 46 | | public string? ErrorMessage { get; set; } |
| | | 47 | | |
| | 0 | 48 | | public DateTime? ProcessedAt { get; set; } |
| | | 49 | | |
| | | 50 | | [ForeignKey(nameof(ExecutionId))] |
| | 0 | 51 | | public virtual BitrixStockPushExecution? Execution { get; set; } |
| | | 52 | | } |