| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | using OzonDomains.Models.Authorization; |
| | | 4 | | |
| | | 5 | | namespace OzonDomains.Models; |
| | | 6 | | |
| | | 7 | | [Table("OrderControlRules")] |
| | | 8 | | public class OrderControlRule |
| | | 9 | | { |
| | 1061 | 10 | | public int Id { get; set; } |
| | | 11 | | |
| | 45 | 12 | | [Required, MaxLength(80)] public string Code { get; set; } = string.Empty; |
| | 45 | 13 | | [Required, MaxLength(200)] public string Name { get; set; } = string.Empty; |
| | 1105 | 14 | | [Required, MaxLength(40)] public string RuleType { get; set; } = string.Empty; |
| | 45 | 15 | | public bool IsActive { get; set; } = true; |
| | 345 | 16 | | public int Priority { get; set; } = 2; |
| | 321 | 17 | | public int TargetAppRoleId { get; set; } |
| | 0 | 18 | | public AppRole? TargetAppRole { get; set; } |
| | 42 | 19 | | [MaxLength(1000)] public string? ParametersJson { get; set; } |
| | 29 | 20 | | public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow; |
| | 29 | 21 | | public DateTime UpdatedAtUtc { get; set; } = DateTime.UtcNow; |
| | | 22 | | } |