Servizi e cose

This commit is contained in:
2025-12-01 15:49:52 +01:00
parent 319e348911
commit 7eaa96281c
26 changed files with 1560 additions and 11 deletions

View File

@ -1,8 +0,0 @@
using Microsoft.AspNetCore.Identity;
namespace StandManager.Domain.Entita;
// Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
{
}

View File

@ -0,0 +1,23 @@
using StandManager.Domain.Entita.Base;
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; }
[InverseProperty(nameof(Destinazione.Cliente))]
public List<Destinazione> Destinazioni { get; set; }
}

View File

@ -0,0 +1,26 @@
using StandManager.Domain.Entita.Base;
using System.ComponentModel.DataAnnotations.Schema;
namespace StandManager.Domain.Entita;
public class Destinazione : EntitaBase
{
[ForeignKey(nameof(Cliente))]
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; }
[ForeignKey(nameof(Agente))]
public Guid? AgenteId { get; set; }
public Utente Agente { get; set; }
[InverseProperty(nameof(Referente.Destinazione))]
public List<Referente> Referenti { get; set; }
}

View File

@ -0,0 +1,14 @@
using StandManager.Domain.Entita.Base;
namespace StandManager.Domain.Entita;
public class Evento : EntitaBase
{
public string Titolo { get; set; }
public string Descrizione { get; set; }
public string Luogo { get; set; }
public string TemplateHtmlMailInvito { get; set; }
public string TemplateHtmlMailIscrizione { get; set; }
public DateTime DataDa { get; set; }
public DateTime DataA { get; set; }
}

View File

@ -0,0 +1,24 @@
using StandManager.Domain.Entita.Base;
using System.ComponentModel.DataAnnotations.Schema;
namespace StandManager.Domain.Entita;
public class IscrizioneEvento : EntitaBase
{
[ForeignKey(nameof(Evento))]
public Guid? EventoId { get; set; }
public Evento Evento{ get; set; }
[ForeignKey(nameof(Cliente))]
public Guid? ClienteId { get; set; }
public Cliente Cliente { get; set; }
[ForeignKey(nameof(Destinazione))]
public Guid? DestinazioneId { get; set; }
public Destinazione Destinazione { get; set; }
public int Partecipanti{ get; set; }
public string Note{ get; set; }
public string QrCodeCode{ get; set; }
public bool ScanCompleto{ get; set; }
public DateTime? DataScan{ get; set; }
}

View File

@ -0,0 +1,24 @@
using StandManager.Domain.Entita.Base;
using System.ComponentModel.DataAnnotations.Schema;
namespace StandManager.Domain.Entita;
public class Referente : EntitaBase
{
[ForeignKey(nameof(Destinazione))]
public Guid? DestinazioneId { get; set; }
public Destinazione Destinazione { get; set; }
public string Nome { get; set; }
public string Cognome { get; set; }
public string Email { get; set; }
public string NumeroTelefono { get; set; }
public Ruolo Ruolo { get; set; }
public string RuoloNote { get; set; }
}
public enum Ruolo
{
Ruolo1 = 0,
Ruolo2,
Ruolo3
}