| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains; |
| | | 5 | | |
| | | 6 | | public class ExcelMapping |
| | | 7 | | { |
| | | 8 | | [Key] |
| | | 9 | | [DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
| | 0 | 10 | | public int Id { get; set; } |
| | | 11 | | |
| | | 12 | | [Required] |
| | | 13 | | [MaxLength(255)] |
| | 0 | 14 | | public string Name { get; set; } = null!; |
| | | 15 | | |
| | | 16 | | [Required] |
| | | 17 | | [MaxLength(500)] |
| | 0 | 18 | | public string SourceFileName { get; set; } = null!; |
| | | 19 | | |
| | | 20 | | [Required] |
| | | 21 | | [MaxLength(500)] |
| | 0 | 22 | | public string DestinationFileName { get; set; } = null!; |
| | | 23 | | |
| | | 24 | | [Required] |
| | | 25 | | [MaxLength(100)] |
| | 0 | 26 | | public string SourceSheet { get; set; } = null!; |
| | | 27 | | |
| | | 28 | | [Required] |
| | | 29 | | [MaxLength(100)] |
| | 0 | 30 | | public string DestinationSheet { get; set; } = null!; |
| | | 31 | | |
| | 0 | 32 | | public int SourceHeaderRow { get; set; } = 1; |
| | 0 | 33 | | public int DestinationHeaderRow { get; set; } = 1; |
| | 0 | 34 | | public int SourceDataStartRow { get; set; } = 2; |
| | 0 | 35 | | public int DestinationDataStartRow { get; set; } = 2; |
| | | 36 | | |
| | | 37 | | [Column(TypeName = "longtext")] |
| | 0 | 38 | | public string ColumnMappingsJson { get; set; } = "{}"; |
| | | 39 | | |
| | 0 | 40 | | public DateTime CreatedDate { get; set; } = DateTime.UtcNow; |
| | 0 | 41 | | public DateTime? ModifiedDate { get; set; } |
| | | 42 | | |
| | 0 | 43 | | public string CreatedBy { get; set; } = string.Empty; |
| | | 44 | | } |