forked from Raphael/SCHALE.GameServer
190 lines
6.4 KiB
C#
190 lines
6.4 KiB
C#
// <auto-generated />
|
|
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("20240501053823_Init")]
|
|
partial class Init
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.2")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("SCHALE.Common.Database.AccountDB", b =>
|
|
{
|
|
b.Property<long>("ServerId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("ServerId"));
|
|
|
|
b.Property<DateTime?>("BirthDay")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("CallName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CallNameUpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Comment")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreateDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DevId")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("Exp")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("LastConnectTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Level")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LinkRewardDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("LobbyMode")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("MemoryLobbyUniqueId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Nickname")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("PublisherAccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("RepresentCharacterServerId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("RetentionDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("UnReadMailCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("VIPLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("ServerId");
|
|
|
|
b.ToTable("Accounts");
|
|
});
|
|
|
|
modelBuilder.Entity("SCHALE.Common.Database.ItemDB", b =>
|
|
{
|
|
b.Property<long>("ServerId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("ServerId"));
|
|
|
|
b.Property<long>("AccountServerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IsLocked")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<long>("StackCount")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("UniqueId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("ServerId");
|
|
|
|
b.ToTable("Items");
|
|
});
|
|
|
|
modelBuilder.Entity("SCHALE.Common.Database.MissionProgressDB", b =>
|
|
{
|
|
b.Property<long>("ServerId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("ServerId"));
|
|
|
|
b.Property<long>("AccountServerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("Complete")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<long>("MissionUniqueId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("ProgressParameters")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("StartTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("ServerId");
|
|
|
|
b.ToTable("MissionProgresses");
|
|
});
|
|
|
|
modelBuilder.Entity("SCHALE.Common.Database.Models.AccountTutorial", b =>
|
|
{
|
|
b.Property<long>("AccountServerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("TutorialIds")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("AccountServerId");
|
|
|
|
b.ToTable("AccountTutorials");
|
|
});
|
|
|
|
modelBuilder.Entity("SCHALE.Common.Database.Models.GuestAccount", b =>
|
|
{
|
|
b.Property<long>("Uid")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Uid"));
|
|
|
|
b.Property<string>("DeviceId")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Token")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Uid");
|
|
|
|
b.ToTable("GuestAccounts");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|