// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using StandManager.Infrastructure.DAL.Context; #nullable disable namespace StandManager.Infrastructure.Migrations { [DbContext(typeof(StandManagerDbContext))] [Migration("20251201110046_Initial")] partial class Initial { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.11") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("StandManager.Domain.Entita.ApplicationUser", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("AccessFailedCount") .HasColumnType("int"); b.Property("ConcurrencyStamp") .HasColumnType("nvarchar(max)"); b.Property("Email") .HasColumnType("nvarchar(max)"); b.Property("EmailConfirmed") .HasColumnType("bit"); b.Property("LockoutEnabled") .HasColumnType("bit"); b.Property("LockoutEnd") .HasColumnType("datetimeoffset"); b.Property("NormalizedEmail") .HasColumnType("nvarchar(max)"); b.Property("NormalizedUserName") .HasColumnType("nvarchar(max)"); b.Property("PasswordHash") .HasColumnType("nvarchar(max)"); b.Property("PhoneNumber") .HasColumnType("nvarchar(max)"); b.Property("PhoneNumberConfirmed") .HasColumnType("bit"); b.Property("SecurityStamp") .HasColumnType("nvarchar(max)"); b.Property("TwoFactorEnabled") .HasColumnType("bit"); b.Property("UserName") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("ApplicationUsers"); }); modelBuilder.Entity("StandManager.Domain.Entita.Utente", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Cognome") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("DataCreazione") .HasColumnType("datetime2"); b.Property("DataModifica") .HasColumnType("datetime2"); b.Property("Eliminato") .HasColumnType("bit"); b.Property("Email") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("IdUtenteCreazione") .HasColumnType("uniqueidentifier"); b.Property("IdUtenteModifica") .HasColumnType("uniqueidentifier"); b.Property("Nome") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Password") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Username") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("IdUtenteCreazione"); b.HasIndex("IdUtenteModifica"); b.ToTable("Utente"); }); modelBuilder.Entity("StandManager.Domain.Entita.Utente", 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"); }); #pragma warning restore 612, 618 } } }