forked from sanchezvem/PyroFetes
17:17 09/10
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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;}
|
||||
|
||||
Reference in New Issue
Block a user