Ajout du Modèle du sujet 1

This commit is contained in:
2025-10-02 14:30:54 +02:00
parent 443663d6af
commit 423f4c4a6c
17 changed files with 242 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
using API.Class;
namespace API.Models
{
public class Product
{
public int Id { get; set; }
public int References { get; set; }
public string Name { get; set; }
public decimal Duration {get; set;}
public decimal Caliber { get; set; }
public int ApprovalNumber { get; set; }
public decimal Weight { get; set; }
public decimal Nec { get; set; }
public decimal SellingPrice { get; set; }
public string Image { get; set; }
public string Link { get; set; }
// Relations
public int ClassificationId { get; set; }
public Classification Classification { get; set; }
public int ProductCategoryId { get; set; }
public ProductCategory ProductCategory { get; set; }
public List<Brand> Brands { get; set; }
public List<Movement> Movements { get; set; }
}
}