17:17 09/10

This commit is contained in:
2025-10-09 17:17:42 +02:00
parent 1734ec0219
commit 91b4aca2fa
76 changed files with 815 additions and 388 deletions

View File

@@ -4,13 +4,11 @@ namespace PyroFetes.Models;
public class Availability
{
//Champs
[Key] public int Id { get; set; }
[Required] public DateOnly AvailabilityDate { get; set; }
[Required] public DateOnly DeliveryDate { get; set; }
[Required] public DateOnly ExpirationDate { get; set; }
[Required] public DateOnly RenewallDate { get; set; }
//Relations
public List<StaffAvailability>? StaffAvailabilities { get; set; }
}

View File

@@ -4,11 +4,9 @@ namespace PyroFetes.Models;
public class Brand
{
//Champs
[Key] public int Id { get; set; }
[Required, MaxLength(100)] public string? Name { get; set; }
[Required] public int ProductId { get; set; }
//Relations
[Required] public int ProductId { get; set; }
[Required] public Product? Product { get; set; }
}

View File

@@ -4,11 +4,9 @@ namespace PyroFetes.Models;
public class City
{
//Champs
[Key] public int Id { get; set; }
[Required, MaxLength(100)] public string? Name { get; set; }
[Required] public int ZipCode { get; set; }
//Relations
public List<Show>? Shows { get; set; }
}

View File

@@ -4,10 +4,8 @@ namespace PyroFetes.Models;
public class Classification
{
//Champs
[Key] public int Id { get; set; }
[Required, MaxLength(100)] public string? Label { get; set; }
//Relations
public List<Product>? Products { get; set; }
}

View File

@@ -4,10 +4,8 @@ namespace PyroFetes.Models;
public class Color
{
//Champs
[Key] public int Id { get; set; }
[Required, MaxLength(100)] public string? Label { get; set; }
//Relations
public List<ProductColor>? ProductColors { get; set; }
}

View File

@@ -4,13 +4,11 @@ namespace PyroFetes.Models;
public class Communication
{
//Champs
[Key] public int Id { get; set; }
[Required, MaxLength(100)] public string? Calling { get; set; }
[Required, MaxLength(100)] public string? Email { get; set; }
[Required, MaxLength(300)] public string? Meeting { get; set; }
//Relations
[Required] public int ContactId { get; set; }
public Contact? Contact { get; set; }
}

View File

@@ -4,7 +4,6 @@ namespace PyroFetes.Models;
public class Contact
{
//Champs
[Key] public int Id { get; set; }
[Required, MaxLength(100)] public string? LastName { get; set; }
[Required, MaxLength(100)] public string? FirstName { get; set; }
@@ -15,8 +14,6 @@ public class Contact
[Required, MaxLength(100)] public string? City { get; set; }
[Required, MaxLength(100)] public string? Role { get; set; }
//Relations
public Customer? Customer { get; set; }
[Required] public int CustomerId { get; set; }

View File

@@ -5,7 +5,7 @@ namespace PyroFetes.Models;
public class Material
{
[Key] public int Id {get; set;}
[Required, MaxLength(100)] public string? Label {get; set;}
[Required, MaxLength(100)] public string? Name {get; set;}
[Required] public int Quantity {get; set;}
[Required] public int WarehouseId {get; set;}