// using System; using Knot.Modules.Auth.Infrastructure.Persistence; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Knot.Modules.Auth.Migrations { [DbContext(typeof(AuthDbContext))] [Migration("20260407181656_AddUserInfoFields")] partial class AddUserInfoFields { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("identity") .HasAnnotation("ProductVersion", "10.0.4") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Knot.Modules.Auth.Domain.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Avatar") .HasColumnType("text"); b.Property("BannedUntil") .HasColumnType("timestamp with time zone"); b.Property("Bio") .HasColumnType("text"); b.Property("Birthday") .HasColumnType("timestamp with time zone"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasColumnType("text"); b.Property("Domain") .HasColumnType("text"); b.Property("Email") .HasColumnType("text"); b.Property("HideStatus") .HasColumnType("boolean"); b.Property("HideStoryViews") .HasColumnType("boolean"); b.Property("IsBanned") .HasColumnType("boolean"); b.Property("IsExternal") .HasColumnType("boolean"); b.Property("IsOnline") .HasColumnType("boolean"); b.Property("LastSeen") .HasColumnType("timestamp with time zone"); b.Property("PasswordHash") .IsRequired() .HasColumnType("text"); b.Property("PhoneNumber") .HasColumnType("text"); b.Property("RefreshToken") .HasColumnType("text"); b.Property("UserDomain") .HasColumnType("text"); b.Property("Username") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("Id"); b.HasIndex("Username") .IsUnique(); b.ToTable("Users", "identity"); }); #pragma warning restore 612, 618 } } }