169 lines
5.5 KiB
C#
169 lines
5.5 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using SVSim.Database;
|
|
|
|
#nullable disable
|
|
|
|
namespace SVSim.Database.Migrations
|
|
{
|
|
[DbContext(typeof(SVSimDbContext))]
|
|
partial class SVSimDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "8.0.8");
|
|
|
|
modelBuilder.Entity("DCGEngine.Database.Models.CardEntry", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("Attack")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("DateCreated")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("Defense")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Discriminator")
|
|
.IsRequired()
|
|
.HasMaxLength(21)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("InternalName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("PrimaryResourceCost")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long?>("ShadowverseDeckEntryId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ShadowverseDeckEntryId");
|
|
|
|
b.ToTable("CardEntry");
|
|
|
|
b.HasDiscriminator().HasValue("CardEntry");
|
|
|
|
b.UseTphMappingStrategy();
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ShadowverseDeckEntry", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("DateCreated")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("InternalName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ShadowverseDeckEntry");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.SocialAccountConnection", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<ulong>("AccountId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AccountType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("DateCreated")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<ulong>("ViewerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ViewerId");
|
|
|
|
b.ToTable("SocialAccountConnection");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.Viewer", b =>
|
|
{
|
|
b.Property<ulong>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("DateCreated")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<ulong>("ShortUdid")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Viewer");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ShadowverseCardEntry", b =>
|
|
{
|
|
b.HasBaseType("DCGEngine.Database.Models.CardEntry");
|
|
|
|
b.HasDiscriminator().HasValue("ShadowverseCardEntry");
|
|
});
|
|
|
|
modelBuilder.Entity("DCGEngine.Database.Models.CardEntry", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.ShadowverseDeckEntry", null)
|
|
.WithMany("Cards")
|
|
.HasForeignKey("ShadowverseDeckEntryId");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.SocialAccountConnection", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.Viewer", "Viewer")
|
|
.WithMany()
|
|
.HasForeignKey("ViewerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viewer");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ShadowverseDeckEntry", b =>
|
|
{
|
|
b.Navigation("Cards");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|