forked from sanchezvem/PyroFetes
26 lines
997 B
C#
26 lines
997 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
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; }
|
|
[Required, MaxLength(100)] public string? Email { get; set; }
|
|
[Required, MaxLength(30)] public string? PhoneNumber { get; set; }
|
|
[Required, MaxLength(100)] public string? Address { get; set; }
|
|
[Required] public int ZipCode { get; set; }
|
|
[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; }
|
|
|
|
public List<Communication>? Communications { get; set; }
|
|
public List<StaffContact>? StaffContacts { get; set; }
|
|
public List<ContactServiceProvider>? ContactServiceProviders { get; set; }
|
|
} |