146 lines
5.1 KiB
C#
146 lines
5.1 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using System.Net;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
using QuestShare.Server.Models;
|
|
|
|
#nullable disable
|
|
|
|
namespace QuestShare.Server.Migrations
|
|
{
|
|
[DbContext(typeof(QuestShareContext))]
|
|
partial class QuestShareContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "9.0.2")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("QuestShare.Server.Models.Ban", b =>
|
|
{
|
|
b.Property<string>("BanId")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<decimal>("BanCharacterId")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b.Property<DateTime>("BanDate")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime>("BanExpiry")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<IPAddress>("BanIp")
|
|
.IsRequired()
|
|
.HasColumnType("inet");
|
|
|
|
b.Property<string>("BanIssuer")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("BanReason")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("BanId");
|
|
|
|
b.ToTable("Bans", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("QuestShare.Server.Models.Client", b =>
|
|
{
|
|
b.Property<Guid>("ClientId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<decimal>("CharacterId")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b.Property<string>("ConnectedShareCode")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ConnectionId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("Created")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasDefaultValueSql("current_timestamp");
|
|
|
|
b.Property<DateTime>("LastUpdated")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasDefaultValueSql("current_timestamp");
|
|
|
|
b.Property<string>("Token")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("ClientId");
|
|
|
|
b.ToTable("Clients", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("QuestShare.Server.Models.Share", b =>
|
|
{
|
|
b.Property<Guid>("ShareId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<bool>("BroadcastParty")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("Created")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasDefaultValueSql("current_timestamp");
|
|
|
|
b.Property<DateTime>("LastUpdated")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasDefaultValueSql("current_timestamp");
|
|
|
|
b.Property<string>("ShareCode")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("ShareHostClientId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<long>("SharedQuestId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<byte>("SharedQuestStep")
|
|
.HasColumnType("smallint");
|
|
|
|
b.HasKey("ShareId");
|
|
|
|
b.HasIndex("ShareHostClientId");
|
|
|
|
b.ToTable("QuestShares", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("QuestShare.Server.Models.Share", b =>
|
|
{
|
|
b.HasOne("QuestShare.Server.Models.Client", "ShareHost")
|
|
.WithMany()
|
|
.HasForeignKey("ShareHostClientId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ShareHost");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|