//
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
namespace Content.Server.Database.Migrations
{
[DbContext(typeof(PreferencesDbContext))]
internal class PreferencesDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "3.1.0");
modelBuilder.Entity("Content.Server.Database.HumanoidProfile", b =>
{
b.Property("HumanoidProfileId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("Age")
.HasColumnType("INTEGER");
b.Property("CharacterName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("EyeColor")
.IsRequired()
.HasColumnType("TEXT");
b.Property("FacialHairColor")
.IsRequired()
.HasColumnType("TEXT");
b.Property("FacialHairName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("HairColor")
.IsRequired()
.HasColumnType("TEXT");
b.Property("HairName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("PrefsId")
.HasColumnType("INTEGER");
b.Property("Sex")
.IsRequired()
.HasColumnType("TEXT");
b.Property("SkinColor")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Slot")
.HasColumnType("INTEGER");
b.Property("SlotName")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("HumanoidProfileId");
b.HasIndex("PrefsId");
b.ToTable("HumanoidProfile");
});
modelBuilder.Entity("Content.Server.Database.Prefs", b =>
{
b.Property("PrefsId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("SelectedCharacterSlot")
.HasColumnType("INTEGER");
b.Property("Username")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("PrefsId");
b.HasIndex("Username")
.IsUnique();
b.ToTable("Preferences");
});
modelBuilder.Entity("Content.Server.Database.HumanoidProfile", b =>
{
b.HasOne("Content.Server.Database.Prefs", null)
.WithMany("HumanoidProfiles")
.HasForeignKey("PrefsId");
});
#pragma warning restore 612, 618
}
}
}