| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("BitrixStockAutoScheduleRuns")] |
| | | 7 | | public class BitrixStockAutoScheduleRun |
| | | 8 | | { |
| | | 9 | | [Key] |
| | 0 | 10 | | public long Id { get; set; } |
| | | 11 | | |
| | 0 | 12 | | public int ScheduleId { get; set; } |
| | | 13 | | |
| | | 14 | | [Required] |
| | | 15 | | [MaxLength(50)] |
| | 0 | 16 | | public string Status { get; set; } = BitrixStockAutoScheduleRunStatus.Running; |
| | | 17 | | |
| | 0 | 18 | | public DateTime StartedAt { get; set; } = DateTime.UtcNow; |
| | | 19 | | |
| | 0 | 20 | | public DateTime? CompletedAt { get; set; } |
| | | 21 | | |
| | 0 | 22 | | public int CandidatesFound { get; set; } |
| | | 23 | | |
| | 0 | 24 | | public int ItemsQueued { get; set; } |
| | | 25 | | |
| | 0 | 26 | | public long? ClearExecutionId { get; set; } |
| | | 27 | | |
| | 0 | 28 | | public long? PushExecutionId { get; set; } |
| | | 29 | | |
| | 0 | 30 | | public string? ErrorMessage { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary>Журнал этапов: связи складов, Ozon API, накат/обнуление.</summary> |
| | 0 | 33 | | public string? RunLog { get; set; } |
| | | 34 | | |
| | | 35 | | [ForeignKey(nameof(ScheduleId))] |
| | 0 | 36 | | public virtual BitrixStockAutoSchedule? Schedule { get; set; } |
| | | 37 | | } |