| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("BitrixStockUnarchiveItems")] |
| | | 7 | | public class BitrixStockUnarchiveItem |
| | | 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 OzonProductId { get; set; } |
| | | 25 | | |
| | | 26 | | [Required] |
| | | 27 | | [MaxLength(200)] |
| | 0 | 28 | | public string OzonClient { get; set; } = string.Empty; |
| | | 29 | | |
| | 0 | 30 | | public bool IsAutoArchived { get; set; } |
| | | 31 | | |
| | 0 | 32 | | public bool IsManualArchived { get; set; } |
| | | 33 | | |
| | 0 | 34 | | public bool WasInArchive { get; set; } = true; |
| | | 35 | | |
| | | 36 | | [Required] |
| | | 37 | | [MaxLength(50)] |
| | 0 | 38 | | public string Status { get; set; } = BitrixStockUnarchiveItemStatus.Pending; |
| | | 39 | | |
| | 0 | 40 | | public string? ErrorMessage { get; set; } |
| | | 41 | | |
| | 0 | 42 | | public DateTime? ProcessedAt { get; set; } |
| | | 43 | | |
| | | 44 | | [ForeignKey(nameof(ExecutionId))] |
| | 0 | 45 | | public virtual BitrixStockUnarchiveExecution? Execution { get; set; } |
| | | 46 | | } |