// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using OnProfNext.Server.Data; #nullable disable namespace OnProfNext.Server.Migrations { [DbContext(typeof(AppDbContext))] partial class AppDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.9") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("OnProfNext.Shared.Models.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("CreatedAt") .ValueGeneratedOnAdd() .HasColumnType("datetime2") .HasDefaultValueSql("SYSDATETIME()"); b.Property("Email") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FirstName") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("IsActive") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(true); b.Property("LastName") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("MandantId") .ValueGeneratedOnAdd() .HasColumnType("int") .HasDefaultValue(1); b.Property("PasswordHash") .IsRequired() .HasMaxLength(512) .HasColumnType("nvarchar(512)"); b.Property("UpdatedAt") .ValueGeneratedOnAddOrUpdate() .HasColumnType("datetime2") .HasDefaultValueSql("SYSDATETIME()"); b.Property("Username") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Users", (string)null); }); #pragma warning restore 612, 618 } } }