SCHALE.GameServer/SCHALE.Common/Migrations/SqliteMigrations/20240601161847_InitialMigra...

568 lines
19 KiB
C#
Raw Permalink Normal View History

// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using SCHALE.Common.Database;
#nullable disable
2024-06-02 02:16:53 +00:00
namespace SCHALE.Common.Migrations.SqliteMigrations
{
2024-06-02 02:16:53 +00:00
[DbContext(typeof(SCHALESqliteContext))]
[Migration("20240601161847_InitialMigration")]
partial class InitialMigration
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
2024-06-02 02:16:53 +00:00
modelBuilder.HasAnnotation("ProductVersion", "8.0.6");
modelBuilder.Entity("SCHALE.Common.Database.AccountDB", b =>
{
b.Property<long>("ServerId")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<DateTime?>("BirthDay")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<string>("CallName")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<DateTime>("CallNameUpdateTime")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<string>("Comment")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<DateTime>("CreateDate")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<string>("DevId")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<long>("Exp")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<DateTime>("LastConnectTime")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<int>("Level")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<DateTime?>("LinkRewardDate")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<int>("LobbyMode")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("MemoryLobbyUniqueId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<string>("Nickname")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<long>("PublisherAccountId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<string>("RaidInfo")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<int>("RepresentCharacterServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int?>("RetentionDays")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("State")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int?>("UnReadMailCount")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int?>("VIPLevel")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.HasKey("ServerId");
b.ToTable("Accounts");
});
modelBuilder.Entity("SCHALE.Common.Database.CharacterDB", b =>
{
b.Property<long>("ServerId")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("AccountServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<string>("EquipmentServerIds")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<string>("EquipmentSlotAndDBIds")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<int>("ExSkillLevel")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("Exp")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("ExtraPassiveSkillLevel")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("FavorExp")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("FavorRank")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<bool>("IsFavorite")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<bool>("IsLocked")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("LeaderSkillLevel")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("Level")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("PassiveSkillLevel")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<string>("PotentialStats")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<int>("PublicSkillLevel")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("StarGrade")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("UniqueId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.HasKey("ServerId");
b.HasIndex("AccountServerId");
b.ToTable("Characters");
});
modelBuilder.Entity("SCHALE.Common.Database.EchelonDB", b =>
{
b.Property<long>("ServerId")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("AccountServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<string>("CombatStyleIndex")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<long>("EchelonNumber")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("EchelonType")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("ExtensionType")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("LeaderServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<string>("MainSlotServerIds")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<string>("SkillCardMulliganCharacterIds")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<string>("SupportSlotServerIds")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<long>("TSSInteractionServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("UsingFlag")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.HasKey("ServerId");
b.HasIndex("AccountServerId");
b.ToTable("Echelons");
});
modelBuilder.Entity("SCHALE.Common.Database.EquipmentDB", b =>
{
b.Property<long>("ServerId")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("AccountServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("BoundCharacterServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("Exp")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<bool>("IsLocked")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("Level")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("StackCount")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("Tier")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("UniqueId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.HasKey("ServerId");
b.HasIndex("AccountServerId");
b.ToTable("Equipment");
});
modelBuilder.Entity("SCHALE.Common.Database.GearDB", b =>
{
b.Property<long>("ServerId")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("AccountServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("BoundCharacterServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("Exp")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("Level")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("SlotIndex")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("Tier")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("UniqueId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.HasKey("ServerId");
b.HasIndex("AccountServerId");
b.ToTable("Gears");
});
modelBuilder.Entity("SCHALE.Common.Database.ItemDB", b =>
{
b.Property<long>("ServerId")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("AccountServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<bool>("IsLocked")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("StackCount")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("UniqueId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.HasKey("ServerId");
b.HasIndex("AccountServerId");
b.ToTable("Items");
});
modelBuilder.Entity("SCHALE.Common.Database.MemoryLobbyDB", b =>
{
b.Property<long>("ServerId")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("AccountServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("MemoryLobbyUniqueId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.HasKey("ServerId");
b.HasIndex("AccountServerId");
b.ToTable("MemoryLobbies");
});
modelBuilder.Entity("SCHALE.Common.Database.MissionProgressDB", b =>
{
b.Property<long>("ServerId")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("AccountServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<bool>("Complete")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("MissionUniqueId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<string>("ProgressParameters")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<DateTime>("StartTime")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.HasKey("ServerId");
b.HasIndex("AccountServerId");
b.ToTable("MissionProgresses");
});
modelBuilder.Entity("SCHALE.Common.Database.Models.AccountTutorial", b =>
{
b.Property<long>("AccountServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<string>("TutorialIds")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.HasKey("AccountServerId");
b.ToTable("AccountTutorials");
});
modelBuilder.Entity("SCHALE.Common.Database.Models.GuestAccount", b =>
{
b.Property<long>("Uid")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<string>("DeviceId")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<string>("Token")
.IsRequired()
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.HasKey("Uid");
b.ToTable("GuestAccounts");
});
modelBuilder.Entity("SCHALE.Common.Database.ScenarioHistoryDB", b =>
{
b.Property<long>("ServerId")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("AccountServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<DateTime>("ClearDateTime")
2024-06-02 02:16:53 +00:00
.HasColumnType("TEXT");
b.Property<long>("ScenarioUniqueId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.HasKey("ServerId");
b.HasIndex("AccountServerId");
b.ToTable("Scenarios");
});
modelBuilder.Entity("SCHALE.Common.Database.WeaponDB", b =>
{
b.Property<long>("ServerId")
.ValueGeneratedOnAdd()
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("AccountServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("BoundCharacterServerId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("Exp")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<bool>("IsLocked")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("Level")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<int>("StarGrade")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.Property<long>("UniqueId")
2024-06-02 02:16:53 +00:00
.HasColumnType("INTEGER");
b.HasKey("ServerId");
b.HasIndex("AccountServerId");
b.ToTable("Weapons");
});
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.GearDB", b =>
{
b.HasOne("SCHALE.Common.Database.AccountDB", "Account")
.WithMany("Gears")
.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.MemoryLobbyDB", b =>
{
b.HasOne("SCHALE.Common.Database.AccountDB", "Account")
.WithMany("MemoryLobbies")
.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.ScenarioHistoryDB", b =>
{
b.HasOne("SCHALE.Common.Database.AccountDB", "Account")
.WithMany("Scenarios")
.HasForeignKey("AccountServerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Account");
});
modelBuilder.Entity("SCHALE.Common.Database.WeaponDB", b =>
{
b.HasOne("SCHALE.Common.Database.AccountDB", "Account")
.WithMany("Weapons")
.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("Gears");
b.Navigation("Items");
b.Navigation("MemoryLobbies");
b.Navigation("MissionProgresses");
b.Navigation("Scenarios");
b.Navigation("Weapons");
});
#pragma warning restore 612, 618
}
}
}