| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("BitrixStockClearItems")] |
| | | 7 | | public class BitrixStockClearItem |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
| | 0 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | 0 | 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)] |
| | 0 | 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)] |
| | 0 | 33 | | public string OzonClient { get; set; } = string.Empty; |
| | | 34 | | |
| | 0 | 35 | | public int PreviousStock { get; set; } |
| | | 36 | | |
| | 0 | 37 | | public int TargetStock { get; set; } |
| | | 38 | | |
| | | 39 | | [Required] |
| | | 40 | | [MaxLength(50)] |
| | 0 | 41 | | public string Status { get; set; } = BitrixStockClearItemStatus.Pending; |
| | | 42 | | |
| | 0 | 43 | | public string? ErrorMessage { get; set; } |
| | | 44 | | |
| | 0 | 45 | | public DateTime? ProcessedAt { get; set; } |
| | | 46 | | |
| | | 47 | | [ForeignKey(nameof(ExecutionId))] |
| | 0 | 48 | | public virtual BitrixStockClearExecution? Execution { get; set; } |
| | | 49 | | } |