| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("BackgroundOrderMatches")] |
| | | 7 | | public class BackgroundOrderMatch |
| | | 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 long? StepId { get; set; } |
| | | 16 | | |
| | 0 | 17 | | public long? ReportLoadId { get; set; } |
| | | 18 | | |
| | | 19 | | [Required] |
| | | 20 | | [MaxLength(100)] |
| | 0 | 21 | | public string OrderNumber { get; set; } = string.Empty; |
| | | 22 | | |
| | | 23 | | [Required] |
| | | 24 | | [MaxLength(100)] |
| | 0 | 25 | | public string Article { get; set; } = string.Empty; |
| | | 26 | | |
| | 0 | 27 | | public int? OrderId { get; set; } |
| | | 28 | | |
| | | 29 | | [MaxLength(100)] |
| | 0 | 30 | | public string? OrderStatus { get; set; } |
| | | 31 | | |
| | 0 | 32 | | public bool IsMatchedInDb { get; set; } |
| | | 33 | | |
| | 0 | 34 | | public bool IsEligibleForProcessing { get; set; } |
| | | 35 | | |
| | | 36 | | [MaxLength(500)] |
| | 0 | 37 | | public string? RejectionReason { get; set; } |
| | | 38 | | |
| | 0 | 39 | | public DateTime CreatedAt { get; set; } = DateTime.UtcNow; |
| | | 40 | | |
| | | 41 | | [ForeignKey(nameof(ExecutionId))] |
| | 0 | 42 | | public virtual BackgroundJobExecution Execution { get; set; } = null!; |
| | | 43 | | |
| | | 44 | | [ForeignKey(nameof(StepId))] |
| | 0 | 45 | | public virtual BackgroundJobStep? Step { get; set; } |
| | | 46 | | |
| | | 47 | | [ForeignKey(nameof(ReportLoadId))] |
| | 0 | 48 | | public virtual BackgroundReportLoad? ReportLoad { get; set; } |
| | | 49 | | |
| | | 50 | | [ForeignKey(nameof(OrderId))] |
| | 0 | 51 | | public virtual Order? Order { get; set; } |
| | | 52 | | |
| | 0 | 53 | | public virtual ICollection<BackgroundTransactionResult> TransactionResults { get; set; } = new List<BackgroundTransa |
| | | 54 | | } |