Files
OldThink/Content.Server.Database/Migrations/Postgres/PostgresPreferencesDbContextModelSnapshot.cs

183 lines
6.6 KiB
C#
Raw Normal View History

// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
2020-01-24 17:25:01 +01:00
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
2020-01-24 17:25:01 +01:00
namespace Content.Server.Database.Migrations.Postgres
{
2020-01-24 17:25:01 +01:00
[DbContext(typeof(PostgresPreferencesDbContext))]
partial class PostgresPreferencesDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2020-01-24 17:25:01 +01:00
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
2020-06-26 03:46:08 +02:00
.HasAnnotation("ProductVersion", "3.1.4")
2020-01-24 17:25:01 +01:00
.HasAnnotation("Relational:MaxIdentifierLength", 63);
modelBuilder.Entity("Content.Server.Database.Antag", b =>
{
b.Property<int>("AntagId")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
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()
2020-01-24 17:25:01 +01:00
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<int>("Age")
2020-01-24 17:25:01 +01:00
.HasColumnType("integer");
b.Property<string>("CharacterName")
.IsRequired()
2020-01-24 17:25:01 +01:00
.HasColumnType("text");
b.Property<string>("EyeColor")
.IsRequired()
2020-01-24 17:25:01 +01:00
.HasColumnType("text");
b.Property<string>("FacialHairColor")
.IsRequired()
2020-01-24 17:25:01 +01:00
.HasColumnType("text");
b.Property<string>("FacialHairName")
.IsRequired()
2020-01-24 17:25:01 +01:00
.HasColumnType("text");
b.Property<string>("HairColor")
.IsRequired()
2020-01-24 17:25:01 +01:00
.HasColumnType("text");
b.Property<string>("HairName")
.IsRequired()
2020-01-24 17:25:01 +01:00
.HasColumnType("text");
b.Property<int>("PreferenceUnavailable")
2020-01-24 17:25:01 +01:00
.HasColumnType("integer");
b.Property<int>("PrefsId")
2020-01-24 17:25:01 +01:00
.HasColumnType("integer");
b.Property<string>("Sex")
.IsRequired()
2020-01-24 17:25:01 +01:00
.HasColumnType("text");
b.Property<string>("SkinColor")
.IsRequired()
2020-01-24 17:25:01 +01:00
.HasColumnType("text");
b.Property<int>("Slot")
2020-01-24 17:25:01 +01:00
.HasColumnType("integer");
b.Property<string>("SlotName")
.IsRequired()
2020-01-24 17:25:01 +01:00
.HasColumnType("text");
b.HasKey("HumanoidProfileId");
b.HasIndex("PrefsId");
2020-06-26 03:46:08 +02:00
b.HasIndex("Slot", "PrefsId")
.IsUnique();
b.ToTable("HumanoidProfile");
});
modelBuilder.Entity("Content.Server.Database.Job", b =>
{
b.Property<int>("JobId")
.ValueGeneratedOnAdd()
2020-01-24 17:25:01 +01:00
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<string>("JobName")
.IsRequired()
2020-01-24 17:25:01 +01:00
.HasColumnType("text");
b.Property<int>("Priority")
2020-01-24 17:25:01 +01:00
.HasColumnType("integer");
b.Property<int>("ProfileHumanoidProfileId")
2020-01-24 17:25:01 +01:00
.HasColumnType("integer");
b.HasKey("JobId");
b.HasIndex("ProfileHumanoidProfileId");
b.ToTable("Job");
});
modelBuilder.Entity("Content.Server.Database.Prefs", b =>
{
b.Property<int>("PrefsId")
.ValueGeneratedOnAdd()
2020-01-24 17:25:01 +01:00
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<int>("SelectedCharacterSlot")
2020-01-24 17:25:01 +01:00
.HasColumnType("integer");
b.Property<string>("Username")
.IsRequired()
2020-01-24 17:25:01 +01:00
.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
}
}
}