forked from sanchezvem/PyroFetes
Change type of date parameters (string => DateOnly)
This commit is contained in:
@@ -5,8 +5,8 @@ namespace PyroFetes.Models;
|
|||||||
public class Availability
|
public class Availability
|
||||||
{
|
{
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
[Required] public string AvailabilityDate { get; set; }
|
[Required] public string? AvailabilityDate { get; set; }
|
||||||
[Required] public string DeliveryDate { get; set; }
|
[Required] public DateOnly DeliveryDate { get; set; }
|
||||||
[Required] public string ExpirationDate { get; set; }
|
[Required] public DateOnly ExpirationDate { get; set; }
|
||||||
[Required] public string RenewallDate { get; set; }
|
[Required] public DateOnly RenewallDate { get; set; }
|
||||||
}
|
}
|
@@ -5,9 +5,9 @@ namespace PyroFetes.Models;
|
|||||||
public class Communication
|
public class Communication
|
||||||
{
|
{
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
[Required] public string Calling { get; set; }
|
[Required] public string? Calling { get; set; }
|
||||||
[Required] public string Email { get; set; }
|
[Required] public string? Email { get; set; }
|
||||||
[Required] public string Meeting { get; set; }
|
[Required] public string? Meeting { get; set; }
|
||||||
|
|
||||||
//REL
|
//REL
|
||||||
}
|
}
|
@@ -5,14 +5,16 @@ namespace PyroFetes.Models;
|
|||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
[Required] public string LastName { get; set; }
|
[Required, MaxLength(100)] public string? LastName { get; set; }
|
||||||
[Required] public string FirstName { get; set; }
|
[Required, MaxLength(100)] public string? FirstName { get; set; }
|
||||||
[Required] public string Email { get; set; }
|
[Required] public string? Email { get; set; }
|
||||||
[Required] public string PhoneNumber { get; set; }
|
[Required] public string? PhoneNumber { get; set; }
|
||||||
[Required] public string Address { get; set; }
|
[Required] public string? Address { get; set; }
|
||||||
[Required] public string Role { get; set; }
|
[Required] public string? ZipCode { get; set; }
|
||||||
|
[Required] public string? City { get; set; }
|
||||||
|
[Required] public string? Role { get; set; }
|
||||||
|
|
||||||
//RELATIONS DE CON LA
|
//RELATIONS DE CON LA
|
||||||
public int CommunicationID { get; set; }
|
public int CommunicationId { get; set; }
|
||||||
public Communication? Communication { get; set; }
|
public Communication? Communication { get; set; }
|
||||||
}
|
}
|
@@ -6,6 +6,7 @@ public class Customer
|
|||||||
{
|
{
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
[Required] public string? Note { get; set; }
|
[Required] public string? Note { get; set; }
|
||||||
|
|
||||||
//Les relations
|
//Les relations
|
||||||
public int CustomerTypeId { get; set; }
|
public int CustomerTypeId { get; set; }
|
||||||
public CustomerType? CustomerType { get; set; }
|
public CustomerType? CustomerType { get; set; }
|
||||||
|
@@ -5,7 +5,7 @@ namespace PyroFetes.Models;
|
|||||||
public class CustomerType
|
public class CustomerType
|
||||||
{
|
{
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
[Required] public string? Price { get; set; }
|
[Required] public decimal Price { get; set; }
|
||||||
//RELATIONS PTN
|
|
||||||
public List<Customer>? Customers { get; set; }
|
public List<Customer>? Customers { get; set; }
|
||||||
}
|
}
|
@@ -5,5 +5,5 @@ namespace PyroFetes.Models;
|
|||||||
public class ExperienceLevel
|
public class ExperienceLevel
|
||||||
{
|
{
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
[Required] public string Label { get; set; }
|
[Required] public string? Label { get; set; }
|
||||||
}
|
}
|
@@ -5,6 +5,6 @@ namespace PyroFetes.Models;
|
|||||||
public class HistoryOfApproval
|
public class HistoryOfApproval
|
||||||
{
|
{
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
[Required] public string ExpirationDate { get; set; }
|
[Required] public DateOnly ExpirationDate { get; set; }
|
||||||
[Required] public string DeliveryDate { get; set; }
|
[Required] public DateOnly DeliveryDate { get; set; }
|
||||||
}
|
}
|
@@ -9,6 +9,6 @@ public class Provider
|
|||||||
|
|
||||||
//Relations
|
//Relations
|
||||||
|
|
||||||
public int ProviderID { get; set; }
|
public int ProviderId { get; set; }
|
||||||
public ProviderType? ProviderType { get; set; }
|
public ProviderType? ProviderType { get; set; }
|
||||||
}
|
}
|
@@ -5,5 +5,5 @@ namespace PyroFetes.Models;
|
|||||||
public class ProviderType
|
public class ProviderType
|
||||||
{
|
{
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
[Required] public string Label { get; set; }
|
[Required] public string? Label { get; set; }
|
||||||
}
|
}
|
@@ -1,10 +1,10 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace PyroFetes.Models;
|
namespace PyroFetes.Models;
|
||||||
|
|
||||||
public class Staff
|
public class Staff
|
||||||
{
|
{
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
[Required] public string F4T2NumberApproval { get; set; }
|
[Required] public string? F4T2NumberApproval { get; set; }
|
||||||
[Required] public string F4T2ExpirationDate { get; set; }
|
[Required] public string? F4T2ExpirationDate { get; set; }
|
||||||
}
|
}
|
Reference in New Issue
Block a user