// using System; using Clarity.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Clarity.Server.Data.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("20260424021033_InitialCreate")] partial class InitialCreate { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "10.0.6") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Clarity.Server.Data.SysParams", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("EncryptedKek") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("SysParams"); }); modelBuilder.Entity("Clarity.Server.Entity.Profile", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("EncryptedDek") .IsRequired() .HasColumnType("bytea"); b.Property("FirstName") .IsRequired() .HasColumnType("text"); b.Property("KeycloakSubject") .IsRequired() .HasColumnType("text"); b.Property("LastName") .IsRequired() .HasColumnType("text"); b.Property("MiddleName") .IsRequired() .HasColumnType("text"); b.Property("OnboardingComplete") .HasColumnType("boolean"); b.Property("Ssn") .IsRequired() .HasColumnType("text"); b.Property("Tenant") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("KeycloakSubject") .IsUnique(); b.ToTable("Profiles"); }); #pragma warning restore 612, 618 } } }