Utente/Eventi
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using StandManager.Domain.Entita.Base;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace StandManager.Domain.Entita;
|
||||
@ -7,12 +8,12 @@ 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; }
|
||||
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; }
|
||||
@ -21,12 +22,14 @@ public class Cliente : EntitaBase
|
||||
[InverseProperty(nameof(Destinazione.Cliente))]
|
||||
public List<Destinazione> Destinazioni { get; set; }
|
||||
|
||||
public string Rid { get; set; }
|
||||
public string? Rid { get; set; }
|
||||
public ClienteTipo TipologiaCliente { get; set; }
|
||||
}
|
||||
|
||||
public enum ClienteTipo
|
||||
{
|
||||
[Description("Cliente")]
|
||||
Cliente = 0,
|
||||
[Description("Potenziale cliente")]
|
||||
Lead = 99
|
||||
}
|
||||
|
||||
@ -6,16 +6,16 @@ namespace StandManager.Domain.Entita;
|
||||
public class Destinazione : EntitaBase
|
||||
{
|
||||
[ForeignKey(nameof(Cliente))]
|
||||
public Guid? Clienteid { get; set; }
|
||||
public Guid? ClienteId { get; set; }
|
||||
public Cliente Cliente { get; set; }
|
||||
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; }
|
||||
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; }
|
||||
|
||||
@ -11,4 +11,7 @@ public class Evento : EntitaBase
|
||||
public string TemplateHtmlMailIscrizione { get; set; }
|
||||
public DateTime DataDa { get; set; }
|
||||
public DateTime DataA { get; set; }
|
||||
|
||||
public DateTime IscrizioneDa { get; set; }
|
||||
public DateTime IscrizioneA { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user