// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Server.DB; #nullable disable namespace Server.DB.Migrations { [DbContext(typeof(WonderkingContext))] [Migration("20230817230423_CharacterDataDraft")] partial class CharacterDataDraft { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "7.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Continuity.AuthServer.DB.Documents.Account", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Email") .HasColumnType("text"); b.Property("Password") .HasColumnType("bytea"); b.Property("PermissionLevel") .HasColumnType("smallint"); b.Property("Salt") .HasColumnType("bytea"); b.Property("Username") .HasColumnType("varchar(20)"); b.HasKey("Id"); b.ToTable("Accounts"); }); modelBuilder.Entity("Continuity.AuthServer.DB.Documents.Character", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AccountId") .HasColumnType("uuid"); b.Property("Experience") .HasColumnType("bigint"); b.Property("Gender") .HasColumnType("smallint"); b.Property("LastXCoordinate") .HasColumnType("smallint"); b.Property("LastYCoordinate") .HasColumnType("smallint"); b.Property("Level") .HasColumnType("smallint"); b.Property("MapId") .HasColumnType("integer"); b.Property("Name") .HasColumnType("varchar(20)"); b.Property("PvPLevel") .HasColumnType("smallint"); b.Property("ServerId") .HasColumnType("smallint"); b.HasKey("Id"); b.HasIndex("AccountId"); b.ToTable("Characters"); }); modelBuilder.Entity("Continuity.AuthServer.DB.Documents.Character", b => { b.HasOne("Continuity.AuthServer.DB.Documents.Account", "Account") .WithMany("Characters") .HasForeignKey("AccountId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Account"); }); modelBuilder.Entity("Continuity.AuthServer.DB.Documents.Account", b => { b.Navigation("Characters"); }); #pragma warning restore 612, 618 } } }