* Fix namespaces and optimize imports * Cleanup fixes * Merge conflict fixes * Merge conflict fixes * Merge conflict fixes
176 lines
5.9 KiB
C#
176 lines
5.9 KiB
C#
// <auto-generated />
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
namespace Content.Server.Database.Migrations.Sqlite
|
|
{
|
|
[DbContext(typeof(SqlitePreferencesDbContext))]
|
|
partial class SqlitePreferencesDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "3.1.4");
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Antag", b =>
|
|
{
|
|
b.Property<int>("AntagId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AntagName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("HumanoidProfileId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("AntagId");
|
|
|
|
b.HasIndex("HumanoidProfileId", "AntagName")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Antag");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.HumanoidProfile", b =>
|
|
{
|
|
b.Property<int>("HumanoidProfileId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Age")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CharacterName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("EyeColor")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("FacialHairColor")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("FacialHairName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HairColor")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HairName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("PreferenceUnavailable")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("PrefsId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Sex")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("SkinColor")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Slot")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("SlotName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("HumanoidProfileId");
|
|
|
|
b.HasIndex("PrefsId");
|
|
|
|
b.HasIndex("Slot", "PrefsId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("HumanoidProfile");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Job", b =>
|
|
{
|
|
b.Property<int>("JobId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("JobName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Priority")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ProfileHumanoidProfileId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("JobId");
|
|
|
|
b.HasIndex("ProfileHumanoidProfileId");
|
|
|
|
b.ToTable("Job");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Prefs", b =>
|
|
{
|
|
b.Property<int>("PrefsId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("SelectedCharacterSlot")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("PrefsId");
|
|
|
|
b.HasIndex("Username")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Preferences");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Antag", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.HumanoidProfile", "Profile")
|
|
.WithMany("Antags")
|
|
.HasForeignKey("HumanoidProfileId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.HumanoidProfile", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Prefs", "Prefs")
|
|
.WithMany("HumanoidProfiles")
|
|
.HasForeignKey("PrefsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Job", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.HumanoidProfile", "Profile")
|
|
.WithMany("Jobs")
|
|
.HasForeignKey("ProfileHumanoidProfileId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|