| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("BackgroundReportLoads")] |
| | | 7 | | public class BackgroundReportLoad |
| | | 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 int OzonClientId { get; set; } |
| | | 18 | | |
| | | 19 | | [MaxLength(100)] |
| | 0 | 20 | | public string? ReportCode { get; set; } |
| | | 21 | | |
| | | 22 | | [MaxLength(500)] |
| | 0 | 23 | | public string? FileName { get; set; } |
| | | 24 | | |
| | 0 | 25 | | public DateTime ReportPeriodFrom { get; set; } |
| | | 26 | | |
| | 0 | 27 | | public DateTime ReportPeriodTo { get; set; } |
| | | 28 | | |
| | 0 | 29 | | public long? FileSizeBytes { get; set; } |
| | | 30 | | |
| | 0 | 31 | | public int? TotalRows { get; set; } |
| | | 32 | | |
| | 0 | 33 | | public int? RowsWithRequiredData { get; set; } |
| | | 34 | | |
| | 0 | 35 | | public int? UniqueOrderNumbers { get; set; } |
| | | 36 | | |
| | 0 | 37 | | public string? FileUrl { get; set; } |
| | | 38 | | |
| | | 39 | | [Required] |
| | | 40 | | [MaxLength(50)] |
| | 0 | 41 | | public string Status { get; set; } = string.Empty; |
| | | 42 | | |
| | 0 | 43 | | public string? ErrorMessage { get; set; } |
| | | 44 | | |
| | 0 | 45 | | public DateTime CreatedAt { get; set; } = DateTime.UtcNow; |
| | | 46 | | |
| | | 47 | | [ForeignKey(nameof(ExecutionId))] |
| | 0 | 48 | | public virtual BackgroundJobExecution Execution { get; set; } = null!; |
| | | 49 | | |
| | | 50 | | [ForeignKey(nameof(StepId))] |
| | 0 | 51 | | public virtual BackgroundJobStep? Step { get; set; } |
| | | 52 | | |
| | | 53 | | [ForeignKey(nameof(OzonClientId))] |
| | 0 | 54 | | public virtual OzonClient OzonClient { get; set; } = null!; |
| | | 55 | | } |