Editing Product.cs

This commit is contained in:
2025-10-10 10:35:23 +02:00
parent f7931fbed6
commit 8371423b16

View File

@@ -5,14 +5,13 @@ namespace PyroFetes.Models
public class Product public class Product
{ {
[Key] public int Id { get; set; } [Key] public int Id { get; set; }
[Required] public int References { get; set; } [Required, MaxLength(20)] public string? Reference { 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 Duration {get; set;}
[Required] public decimal Caliber { get; set; } [Required] public decimal Caliber { get; set; }
[Required] public int ApprovalNumber { get; set; } [Required] public int ApprovalNumber { get; set; }
[Required] public decimal Weight { get; set; } [Required] public decimal Weight { get; set; }
[Required] public decimal Nec { get; set; } [Required] public decimal Nec { get; set; }
[Required] public decimal SellingPrice { get; set; }
[Required] public string? Image { get; set; } [Required] public string? Image { get; set; }
[Required, MaxLength(200)] public string? Link { get; set; } [Required, MaxLength(200)] public string? Link { get; set; }
[Required] public int MinimalQuantity { get; set; } [Required] public int MinimalQuantity { get; set; }