Correcting type error in all string properties

This commit is contained in:
2025-10-03 14:37:27 +01:00
parent 4cb501fe04
commit f163aa5feb

View File

@@ -7,26 +7,26 @@ namespace API.Models
{
[Key] public int Id { get; set; }
[Required] public int References { get; set; }
[Required, MaxLength(100)] public string Name { get; set; }
[Required, MaxLength(100)] public string? Name { get; set; }
[Required] public decimal Duration {get; set;}
[Required] public decimal Caliber { get; set; }
[Required] public int ApprovalNumber { get; set; }
[Required] public decimal Weight { get; set; }
[Required] public decimal Nec { get; set; }
[Required] public decimal SellingPrice { get; set; }
[Required] public string Image { get; set; }
[Required] public string Link { get; set; }
[Required] public string? Image { get; set; }
[Required] public string? Link { get; set; }
// Relations
[Required] public int ClassificationId { get; set; }
[Required] public Classification Classification { get; set; }
[Required] public Classification? Classification { get; set; }
[Required] public int ProductCategoryId { get; set; }
[Required] public ProductCategory ProductCategory { get; set; }
[Required] public ProductCategory? ProductCategory { get; set; }
[Required] public List<Brand> Brands { get; set; }
[Required] public List<Brand>? Brands { get; set; }
[Required] public List<Movement> Movements { get; set; }
[Required] public List<Movement>? Movements { get; set; }
}
}