// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using SCHALE.Common.Database; #nullable disable namespace SCHALE.Common.Migrations.SqlServerMigrations { [DbContext(typeof(SCHALEContext))] [Migration("20240510003553_Equipment")] partial class Equipment { /// 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) .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("SCHALE.Common.Database.AccountDB", b => { b.Property("ServerId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); b.Property("BirthDay") .HasColumnType("datetime2"); b.Property("CallName") .HasColumnType("nvarchar(max)"); b.Property("CallNameUpdateTime") .HasColumnType("datetime2"); b.Property("Comment") .HasColumnType("nvarchar(max)"); b.Property("CreateDate") .HasColumnType("datetime2"); b.Property("DevId") .HasColumnType("nvarchar(max)"); b.Property("Exp") .HasColumnType("bigint"); b.Property("LastConnectTime") .HasColumnType("datetime2"); b.Property("Level") .HasColumnType("int"); b.Property("LinkRewardDate") .HasColumnType("datetime2"); b.Property("LobbyMode") .HasColumnType("int"); b.Property("MemoryLobbyUniqueId") .HasColumnType("bigint"); b.Property("Nickname") .HasColumnType("nvarchar(max)"); b.Property("PublisherAccountId") .HasColumnType("bigint"); b.Property("RepresentCharacterServerId") .HasColumnType("int"); b.Property("RetentionDays") .HasColumnType("int"); b.Property("State") .HasColumnType("int"); b.Property("UnReadMailCount") .HasColumnType("int"); b.Property("VIPLevel") .HasColumnType("int"); b.HasKey("ServerId"); b.ToTable("Accounts"); }); modelBuilder.Entity("SCHALE.Common.Database.CharacterDB", b => { b.Property("ServerId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); b.Property("AccountServerId") .HasColumnType("bigint"); b.Property("EquipmentServerIds") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("EquipmentSlotAndDBIds") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ExSkillLevel") .HasColumnType("int"); b.Property("Exp") .HasColumnType("bigint"); b.Property("ExtraPassiveSkillLevel") .HasColumnType("int"); b.Property("FavorExp") .HasColumnType("bigint"); b.Property("FavorRank") .HasColumnType("int"); b.Property("IsFavorite") .HasColumnType("bit"); b.Property("IsLocked") .HasColumnType("bit"); b.Property("LeaderSkillLevel") .HasColumnType("int"); b.Property("Level") .HasColumnType("int"); b.Property("PassiveSkillLevel") .HasColumnType("int"); b.Property("PotentialStats") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("PublicSkillLevel") .HasColumnType("int"); b.Property("StarGrade") .HasColumnType("int"); b.Property("UniqueId") .HasColumnType("bigint"); b.HasKey("ServerId"); b.HasIndex("AccountServerId"); b.ToTable("Characters"); }); modelBuilder.Entity("SCHALE.Common.Database.EchelonDB", b => { b.Property("ServerId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); b.Property("AccountServerId") .HasColumnType("bigint"); b.Property("EchelonNumber") .HasColumnType("bigint"); b.Property("EchelonType") .HasColumnType("int"); b.Property("ExtensionType") .HasColumnType("int"); b.Property("LeaderServerId") .HasColumnType("bigint"); b.Property("MainSlotServerIds") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("SkillCardMulliganCharacterIds") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("SupportSlotServerIds") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("TSSInteractionServerId") .HasColumnType("bigint"); b.Property("UsingFlag") .HasColumnType("int"); b.HasKey("ServerId"); b.HasIndex("AccountServerId"); b.ToTable("Echelons"); }); modelBuilder.Entity("SCHALE.Common.Database.EquipmentDB", b => { b.Property("ServerId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); b.Property("AccountServerId") .HasColumnType("bigint"); b.Property("BoundCharacterServerId") .HasColumnType("bigint"); b.Property("Exp") .HasColumnType("bigint"); b.Property("IsLocked") .HasColumnType("bit"); b.Property("Level") .HasColumnType("int"); b.Property("StackCount") .HasColumnType("bigint"); b.Property("Tier") .HasColumnType("int"); b.Property("UniqueId") .HasColumnType("bigint"); b.HasKey("ServerId"); b.HasIndex("AccountServerId"); b.ToTable("Equipment"); }); modelBuilder.Entity("SCHALE.Common.Database.ItemDB", b => { b.Property("ServerId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); b.Property("AccountServerId") .HasColumnType("bigint"); b.Property("IsLocked") .HasColumnType("bit"); b.Property("StackCount") .HasColumnType("bigint"); b.Property("UniqueId") .HasColumnType("bigint"); b.HasKey("ServerId"); b.HasIndex("AccountServerId"); b.ToTable("Items"); }); modelBuilder.Entity("SCHALE.Common.Database.MissionProgressDB", b => { b.Property("ServerId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); b.Property("AccountServerId") .HasColumnType("bigint"); b.Property("Complete") .HasColumnType("bit"); b.Property("MissionUniqueId") .HasColumnType("bigint"); b.Property("ProgressParameters") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("StartTime") .HasColumnType("datetime2"); b.HasKey("ServerId"); b.HasIndex("AccountServerId"); b.ToTable("MissionProgresses"); }); modelBuilder.Entity("SCHALE.Common.Database.Models.AccountTutorial", b => { b.Property("AccountServerId") .HasColumnType("bigint"); b.Property("TutorialIds") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("AccountServerId"); b.ToTable("AccountTutorials"); }); modelBuilder.Entity("SCHALE.Common.Database.Models.GuestAccount", b => { b.Property("Uid") .ValueGeneratedOnAdd() .HasColumnType("bigint"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Uid")); b.Property("DeviceId") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Token") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Uid"); b.ToTable("GuestAccounts"); }); modelBuilder.Entity("SCHALE.Common.Database.CharacterDB", b => { b.HasOne("SCHALE.Common.Database.AccountDB", "Account") .WithMany("Characters") .HasForeignKey("AccountServerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Account"); }); modelBuilder.Entity("SCHALE.Common.Database.EchelonDB", b => { b.HasOne("SCHALE.Common.Database.AccountDB", "Account") .WithMany("Echelons") .HasForeignKey("AccountServerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Account"); }); modelBuilder.Entity("SCHALE.Common.Database.EquipmentDB", b => { b.HasOne("SCHALE.Common.Database.AccountDB", "Account") .WithMany("Equipment") .HasForeignKey("AccountServerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Account"); }); modelBuilder.Entity("SCHALE.Common.Database.ItemDB", b => { b.HasOne("SCHALE.Common.Database.AccountDB", "Account") .WithMany("Items") .HasForeignKey("AccountServerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Account"); }); modelBuilder.Entity("SCHALE.Common.Database.MissionProgressDB", b => { b.HasOne("SCHALE.Common.Database.AccountDB", "Account") .WithMany("MissionProgresses") .HasForeignKey("AccountServerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Account"); }); modelBuilder.Entity("SCHALE.Common.Database.AccountDB", b => { b.Navigation("Characters"); b.Navigation("Echelons"); b.Navigation("Equipment"); b.Navigation("Items"); b.Navigation("MissionProgresses"); }); #pragma warning restore 612, 618 } } }