| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("WarehouseMapping")] |
| | | 7 | | public class WarehouseMapping |
| | | 8 | | { |
| | 392 | 9 | | public int Id { get; set; } |
| | 425 | 10 | | public string BitrixWarehouseName { get; set; } = null!; |
| | 477 | 11 | | public string OzonWarehouseName { get; set; } = null!; |
| | 279 | 12 | | public int? OzonClientId { get; set; } |
| | 14 | 13 | | public int? SupplierId { get; set; } |
| | 77 | 14 | | public string? DeliveryType { get; set; } |
| | 14 | 15 | | public string? ReturnBitrixWarehouseName { get; set; } |
| | 30 | 16 | | public string? TransitBitrixWarehouseName { get; set; } |
| | | 17 | | |
| | 447 | 18 | | public string? OzonWarehouseId { get; set; } |
| | | 19 | | |
| | | 20 | | [Range(0, 999, ErrorMessage = "Приоритет должен быть от 0 до 999")] |
| | 126 | 21 | | public int Priority { get; set; } = 0; |
| | | 22 | | |
| | 3 | 23 | | [ForeignKey("OzonClientId")] public virtual OzonClient? OzonClient { get; set; } |
| | 5 | 24 | | [ForeignKey(nameof(SupplierId))] public virtual Supplier? Supplier { get; set; } |
| | | 25 | | } |