Tipologia cliente

This commit is contained in:
2025-12-15 11:01:14 +01:00
parent 69d28744f6
commit 664cee9656
22 changed files with 1118 additions and 491 deletions

View File

@ -78,8 +78,8 @@ namespace StandManager.Infrastructure.Migrations
b.Property<int>("StatoCliente")
.HasColumnType("int");
b.Property<int>("TipologiaCliente")
.HasColumnType("int");
b.Property<Guid?>("TipologiaClienteId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
@ -89,6 +89,8 @@ namespace StandManager.Infrastructure.Migrations
b.HasIndex("IdUtenteModifica");
b.HasIndex("TipologiaClienteId");
b.ToTable("Cliente");
});
@ -327,10 +329,6 @@ namespace StandManager.Infrastructure.Migrations
b.Property<string>("Provincia")
.HasColumnType("nvarchar(max)");
b.Property<string>("QrCodeCode")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("RagioneSociale")
.HasColumnType("nvarchar(max)");
@ -340,8 +338,8 @@ namespace StandManager.Infrastructure.Migrations
b.Property<bool>("ScanCompleto")
.HasColumnType("bit");
b.Property<int>("Tipologia")
.HasColumnType("int");
b.Property<Guid?>("TipologiaClienteId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
@ -357,6 +355,8 @@ namespace StandManager.Infrastructure.Migrations
b.HasIndex("InvitoEventoId");
b.HasIndex("TipologiaClienteId");
b.ToTable("IscrizioneEvento");
});
@ -418,6 +418,40 @@ namespace StandManager.Infrastructure.Migrations
b.ToTable("Referente");
});
modelBuilder.Entity("StandManager.Domain.Entita.TipologiaCliente", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<DateTime>("DataCreazione")
.HasColumnType("datetime2");
b.Property<DateTime?>("DataModifica")
.HasColumnType("datetime2");
b.Property<bool>("Eliminato")
.HasColumnType("bit");
b.Property<Guid?>("IdUtenteCreazione")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("IdUtenteModifica")
.HasColumnType("uniqueidentifier");
b.Property<string>("Nome")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("IdUtenteCreazione");
b.HasIndex("IdUtenteModifica");
b.ToTable("TipologiaCliente");
});
modelBuilder.Entity("StandManager.Domain.Entita.Utente", b =>
{
b.Property<Guid>("Id")
@ -482,8 +516,14 @@ namespace StandManager.Infrastructure.Migrations
.WithMany()
.HasForeignKey("IdUtenteModifica");
b.HasOne("StandManager.Domain.Entita.TipologiaCliente", "TipologiaCliente")
.WithMany()
.HasForeignKey("TipologiaClienteId");
b.Navigation("Agente");
b.Navigation("TipologiaCliente");
b.Navigation("UtenteCreazione");
b.Navigation("UtenteModifica");
@ -584,6 +624,10 @@ namespace StandManager.Infrastructure.Migrations
.WithMany("IscrizioniEvento")
.HasForeignKey("InvitoEventoId");
b.HasOne("StandManager.Domain.Entita.TipologiaCliente", "TipologiaCliente")
.WithMany()
.HasForeignKey("TipologiaClienteId");
b.Navigation("Cliente");
b.Navigation("Destinazione");
@ -592,6 +636,8 @@ namespace StandManager.Infrastructure.Migrations
b.Navigation("InvitoEvento");
b.Navigation("TipologiaCliente");
b.Navigation("UtenteCreazione");
b.Navigation("UtenteModifica");
@ -618,6 +664,21 @@ namespace StandManager.Infrastructure.Migrations
b.Navigation("UtenteModifica");
});
modelBuilder.Entity("StandManager.Domain.Entita.TipologiaCliente", b =>
{
b.HasOne("StandManager.Domain.Entita.Utente", "UtenteCreazione")
.WithMany()
.HasForeignKey("IdUtenteCreazione");
b.HasOne("StandManager.Domain.Entita.Utente", "UtenteModifica")
.WithMany()
.HasForeignKey("IdUtenteModifica");
b.Navigation("UtenteCreazione");
b.Navigation("UtenteModifica");
});
modelBuilder.Entity("StandManager.Domain.Entita.Utente", b =>
{
b.HasOne("StandManager.Domain.Entita.Utente", "UtenteCreazione")