Files
StandManager/StandManager.Domain/Entita/Cliente.cs
2025-12-19 10:38:51 +01:00

43 lines
1.3 KiB
C#

using StandManager.Domain.Entita.Base;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
namespace StandManager.Domain.Entita;
public class Cliente : EntitaBase
{
public string RagioneSociale { get; set; }
public string PartitaIva { get; set; }
public string? Cap { get; set; }
public string? Citta { get; set; }
public string? Indirizzo { get; set; }
public string? Email { get; set; }
public string? EmailInvito { get; set; }
public string? NumeroTelefono { get; set; }
[ForeignKey(nameof(Agente))]
public Guid? AgenteId { get; set; }
public Utente Agente { get; set; }
[ForeignKey(nameof(Capoarea))]
public Guid? CapoareaId { get; set; }
public Utente Capoarea { get; set; }
[InverseProperty(nameof(Destinazione.Cliente))]
public List<Destinazione> Destinazioni { get; set; }
public string? Rid { get; set; }
[ForeignKey(nameof(TipologiaCliente))]
public Guid? TipologiaClienteId { get; set; }
public TipologiaCliente TipologiaCliente { get; set; }
public ClienteStato StatoCliente { get; set; }
public string? TipologiaGestionale { get; set; }
}
public enum ClienteStato
{
[Description("Cliente")]
Cliente = 0,
[Description("Potenziale cliente")]
Lead = 99
}