146 lines
4.8 KiB
C#
146 lines
4.8 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Pal.Client.Database;
|
|
|
|
#nullable disable
|
|
|
|
namespace Pal.Client.Database.Migrations
|
|
{
|
|
[DbContext(typeof(PalClientContext))]
|
|
partial class PalClientContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "7.0.3");
|
|
|
|
modelBuilder.Entity("ClientLocationImportHistory", b =>
|
|
{
|
|
b.Property<Guid>("ImportedById")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ImportedLocationsLocalId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("ImportedById", "ImportedLocationsLocalId");
|
|
|
|
b.HasIndex("ImportedLocationsLocalId");
|
|
|
|
b.ToTable("LocationImports", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Pal.Client.Database.ClientLocation", b =>
|
|
{
|
|
b.Property<int>("LocalId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Seen")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("SinceVersion")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Source")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<ushort>("TerritoryType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<float>("X")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<float>("Y")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<float>("Z")
|
|
.HasColumnType("REAL");
|
|
|
|
b.HasKey("LocalId");
|
|
|
|
b.ToTable("Locations");
|
|
});
|
|
|
|
modelBuilder.Entity("Pal.Client.Database.ImportHistory", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("ExportedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("ImportedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RemoteUrl")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Imports");
|
|
});
|
|
|
|
modelBuilder.Entity("Pal.Client.Database.RemoteEncounter", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AccountId")
|
|
.IsRequired()
|
|
.HasMaxLength(13)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ClientLocationId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientLocationId");
|
|
|
|
b.ToTable("RemoteEncounters");
|
|
});
|
|
|
|
modelBuilder.Entity("ClientLocationImportHistory", b =>
|
|
{
|
|
b.HasOne("Pal.Client.Database.ImportHistory", null)
|
|
.WithMany()
|
|
.HasForeignKey("ImportedById")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Pal.Client.Database.ClientLocation", null)
|
|
.WithMany()
|
|
.HasForeignKey("ImportedLocationsLocalId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Pal.Client.Database.RemoteEncounter", b =>
|
|
{
|
|
b.HasOne("Pal.Client.Database.ClientLocation", "ClientLocation")
|
|
.WithMany("RemoteEncounters")
|
|
.HasForeignKey("ClientLocationId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ClientLocation");
|
|
});
|
|
|
|
modelBuilder.Entity("Pal.Client.Database.ClientLocation", b =>
|
|
{
|
|
b.Navigation("RemoteEncounters");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|