using System.ComponentModel.DataAnnotations; namespace PyroFetes.Models { public class Product { [Key] public int Id { get; set; } [Required] public int References { 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, MaxLength(200)] public string? Link { get; set; } [Required] public int MinimalQuantity { get; set; } // Relations [Required] public int ClassificationId { get; set; } public Classification? Classification { get; set; } [Required] public int ProductCategoryId { get; set; } public ProductCategory? ProductCategory { get; set; } [Required] public int MovementId {get; set;} public Movement? Movement {get; set;} public List? ProductDeliveries { get; set; } public List? Brands { get; set; } public List? ProductEffects { get; set; } public List? ProductColors { get; set; } public List? PurchaseProducts { get; set; } public List? Prices { get; set; } public List? QuotationProducts { get; set; } public List? WarehouseProducts { get; set; } public List? ProductTimecodes { get; set; } } }