// using System; using BLHX.Server.Common.Database; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace BLHX.Server.Common.Migrations.Player { [DbContext(typeof(PlayerContext))] [Migration("20240220103529_Init_PlayerContext")] partial class Init_PlayerContext { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.2") .HasAnnotation("Proxies:ChangeTracking", false) .HasAnnotation("Proxies:CheckEquality", false) .HasAnnotation("Proxies:LazyLoading", true); modelBuilder.Entity("BLHX.Server.Common.Database.Player", b => { b.Property("Uid") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("DisplayInfo") .IsRequired() .HasColumnType("jsonb"); b.Property("Exp") .HasColumnType("INTEGER"); b.Property("Level") .HasColumnType("INTEGER"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.Property("Token") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Uid"); b.HasIndex("Token") .IsUnique(); b.ToTable("Players"); }); modelBuilder.Entity("BLHX.Server.Common.Database.PlayerResource", b => { b.Property("Id") .HasColumnType("INTEGER"); b.Property("PlayerUid") .HasColumnType("INTEGER"); b.Property("Num") .HasColumnType("INTEGER"); b.HasKey("Id", "PlayerUid"); b.HasIndex("PlayerUid"); b.ToTable("Resources"); }); modelBuilder.Entity("BLHX.Server.Common.Database.PlayerShip", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ActivityNpc") .HasColumnType("INTEGER"); b.Property("BluePrintFlag") .HasColumnType("INTEGER"); b.Property("CommanderId") .HasColumnType("INTEGER"); b.Property("CommonFlag") .HasColumnType("INTEGER"); b.Property("CoreLists") .IsRequired() .HasColumnType("jsonb"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("Energy") .HasColumnType("INTEGER"); b.Property("EquipInfoLists") .IsRequired() .HasColumnType("jsonb"); b.Property("Exp") .HasColumnType("INTEGER"); b.Property("Intimacy") .HasColumnType("INTEGER"); b.Property("IsLocked") .HasColumnType("INTEGER"); b.Property("LastChangeName") .HasColumnType("TEXT"); b.Property("Level") .HasColumnType("INTEGER"); b.Property("MetaRepairLists") .IsRequired() .HasColumnType("jsonb"); b.Property("Name") .HasColumnType("TEXT"); b.Property("PlayerUid") .HasColumnType("INTEGER"); b.Property("Proficiency") .HasColumnType("INTEGER"); b.Property("Propose") .HasColumnType("INTEGER"); b.Property("SkillIdLists") .IsRequired() .HasColumnType("jsonb"); b.Property("SkinId") .HasColumnType("INTEGER"); b.Property("State") .IsRequired() .HasColumnType("jsonb"); b.Property("StrengthLists") .IsRequired() .HasColumnType("jsonb"); b.Property("TemplateId") .HasColumnType("INTEGER"); b.Property("TransformLists") .IsRequired() .HasColumnType("jsonb"); b.HasKey("Id"); b.HasIndex("PlayerUid"); b.ToTable("Ships"); }); modelBuilder.Entity("BLHX.Server.Common.Database.PlayerResource", b => { b.HasOne("BLHX.Server.Common.Database.Player", "Player") .WithMany("Resources") .HasForeignKey("PlayerUid") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Player"); }); modelBuilder.Entity("BLHX.Server.Common.Database.PlayerShip", b => { b.HasOne("BLHX.Server.Common.Database.Player", "Player") .WithMany("Ships") .HasForeignKey("PlayerUid") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Player"); }); modelBuilder.Entity("BLHX.Server.Common.Database.Player", b => { b.Navigation("Resources"); b.Navigation("Ships"); }); #pragma warning restore 612, 618 } } }