180 lines
5.8 KiB
C#
180 lines
5.8 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
using Server.DB;
|
|
|
|
#nullable disable
|
|
|
|
namespace Server.DB.Migrations
|
|
{
|
|
[DbContext(typeof(WonderkingContext))]
|
|
partial class WonderkingContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.13")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Server.DB.Documents.Account", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Email")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<byte[]>("Password")
|
|
.HasColumnType("bytea");
|
|
|
|
b.Property<byte>("PermissionLevel")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<byte[]>("Salt")
|
|
.HasColumnType("bytea");
|
|
|
|
b.Property<string>("Username")
|
|
.HasColumnType("varchar(20)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Accounts");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.DB.Documents.Character", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("AccountId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<long>("Experience")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<byte>("Gender")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<short>("LastXCoordinate")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<short>("LastYCoordinate")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<byte>("Level")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<int>("MapId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("varchar(20)");
|
|
|
|
b.Property<byte>("PvPLevel")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<byte>("ServerId")
|
|
.HasColumnType("smallint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AccountId");
|
|
|
|
b.ToTable("Characters");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.DB.Documents.InventoryItem", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<byte>("AddOption")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<byte>("AddOption2")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<byte>("AddOption3")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<Guid>("CharacterId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<int>("Count")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<short>("ItemId")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<byte>("ItemType")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<byte>("Level")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<short>("Option")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<short>("Option2")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<short>("Option3")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<byte>("Rarity")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<byte>("Slot")
|
|
.HasColumnType("smallint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.ToTable("InventoryItem");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.DB.Documents.Character", b =>
|
|
{
|
|
b.HasOne("Server.DB.Documents.Account", "Account")
|
|
.WithMany("Characters")
|
|
.HasForeignKey("AccountId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Account");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.DB.Documents.InventoryItem", b =>
|
|
{
|
|
b.HasOne("Server.DB.Documents.Character", "Character")
|
|
.WithMany("InventoryItems")
|
|
.HasForeignKey("CharacterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Character");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.DB.Documents.Account", b =>
|
|
{
|
|
b.Navigation("Characters");
|
|
});
|
|
|
|
modelBuilder.Entity("Server.DB.Documents.Character", b =>
|
|
{
|
|
b.Navigation("InventoryItems");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|