// using System; using System.Collections.Generic; using Govor.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 Govor.Data.Migrations { [DbContext(typeof(GovorDbContext))] [Migration("20250618082839_AddPasswordHashColumn")] partial class AddPasswordHashColumn { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.6") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Govor.Core.Models.ChatGroup", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.PrimitiveCollection>("Admins") .IsRequired() .HasColumnType("uuid[]"); b.PrimitiveCollection>("InviteCode") .IsRequired() .HasColumnType("text[]"); b.Property("IsChannel") .HasColumnType("boolean"); b.Property("IsPrivate") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("ChatGroups"); }); modelBuilder.Entity("Govor.Core.Models.GroupAdmins", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("GroupId") .HasColumnType("uuid"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.ToTable("GroupAdmins"); }); modelBuilder.Entity("Govor.Core.Models.GroupMembership", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("GroupId") .HasColumnType("uuid"); b.Property("IsBanned") .HasColumnType("boolean"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.ToTable("GroupMemberships"); }); modelBuilder.Entity("Govor.Core.Models.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedOn") .HasColumnType("date"); b.Property("Description") .IsRequired() .HasColumnType("text"); b.Property("IconId") .HasColumnType("uuid"); b.Property("PasswordHash") .IsRequired() .HasColumnType("text"); b.Property("Username") .IsRequired() .HasColumnType("text"); b.Property("WasOnline") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("Users"); }); #pragma warning restore 612, 618 } } }