mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-06-09 10:06:49 +02:00
bdfix
This commit is contained in:
+111
@@ -29,6 +29,39 @@ namespace Content.Server.Database.Migrations.Postgres
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("Content.Server.Database.Achievement", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("achievement_id");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<byte>("AchievementKey")
|
||||
.HasColumnType("smallint")
|
||||
.HasColumnName("achievement_key");
|
||||
|
||||
b.Property<Guid>("PlayerUserId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("player_user_id");
|
||||
|
||||
b.Property<DateTime>("UnlockedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("unlocked_at");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK_achievement");
|
||||
|
||||
b.HasIndex("PlayerUserId")
|
||||
.HasDatabaseName("IX_achievement_player_user_id");
|
||||
|
||||
b.HasIndex("PlayerUserId", "AchievementKey")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("achievement", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Content.Server.Database.Admin", b =>
|
||||
{
|
||||
b.Property<Guid>("UserId")
|
||||
@@ -1049,6 +1082,16 @@ namespace Content.Server.Database.Migrations.Postgres
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("age");
|
||||
|
||||
b.Property<string>("BarkVoice")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("bark_voice");
|
||||
|
||||
b.Property<string>("CharacterFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("character_flavor_text");
|
||||
|
||||
b.Property<string>("CharacterName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
@@ -1079,6 +1122,11 @@ namespace Content.Server.Database.Migrations.Postgres
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("gender");
|
||||
|
||||
b.Property<string>("GreenFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("green_flavor_text");
|
||||
|
||||
b.Property<string>("HairColor")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
@@ -1089,10 +1137,33 @@ namespace Content.Server.Database.Migrations.Postgres
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("hair_name");
|
||||
|
||||
b.Property<float>("Height")
|
||||
.HasColumnType("real")
|
||||
.HasColumnName("height");
|
||||
|
||||
b.Property<string>("LinksFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("links_flavor_text");
|
||||
|
||||
b.Property<JsonDocument>("Markings")
|
||||
.HasColumnType("jsonb")
|
||||
.HasColumnName("markings");
|
||||
|
||||
b.Property<string>("NSFWFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("nsfwflavor_text");
|
||||
|
||||
b.Property<string>("OOCFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("oocflavor_text");
|
||||
|
||||
b.Property<JsonDocument>("OrganMarkings")
|
||||
.HasColumnType("jsonb")
|
||||
.HasColumnName("organ_markings");
|
||||
|
||||
b.Property<int>("PreferenceId")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("preference_id");
|
||||
@@ -1101,6 +1172,11 @@ namespace Content.Server.Database.Migrations.Postgres
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("pref_unavailable");
|
||||
|
||||
b.Property<string>("RedFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("red_flavor_text");
|
||||
|
||||
b.Property<string>("Sex")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
@@ -1124,6 +1200,26 @@ namespace Content.Server.Database.Migrations.Postgres
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("species");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<string>("TagsFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("tags_flavor_text");
|
||||
|
||||
b.Property<string>("Voice")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("voice");
|
||||
|
||||
b.Property<string>("YellowFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("yellow_flavor_text");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK_profile");
|
||||
|
||||
@@ -1454,6 +1550,19 @@ namespace Content.Server.Database.Migrations.Postgres
|
||||
b.ToTable("player_round", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Content.Server.Database.Achievement", b =>
|
||||
{
|
||||
b.HasOne("Content.Server.Database.Player", "Player")
|
||||
.WithMany("Achievements")
|
||||
.HasForeignKey("PlayerUserId")
|
||||
.HasPrincipalKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK_achievement_player_player_user_id");
|
||||
|
||||
b.Navigation("Player");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Content.Server.Database.Admin", b =>
|
||||
{
|
||||
b.HasOne("Content.Server.Database.AdminRank", "AdminRank")
|
||||
@@ -2049,6 +2158,8 @@ namespace Content.Server.Database.Migrations.Postgres
|
||||
|
||||
modelBuilder.Entity("Content.Server.Database.Player", b =>
|
||||
{
|
||||
b.Navigation("Achievements");
|
||||
|
||||
b.Navigation("AdminLogs");
|
||||
|
||||
b.Navigation("AdminMessagesCreated");
|
||||
|
||||
+109
@@ -20,6 +20,37 @@ namespace Content.Server.Database.Migrations.Sqlite
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "10.0.0");
|
||||
|
||||
modelBuilder.Entity("Content.Server.Database.Achievement", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("achievement_id");
|
||||
|
||||
b.Property<byte>("AchievementKey")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("achievement_key");
|
||||
|
||||
b.Property<Guid>("PlayerUserId")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("player_user_id");
|
||||
|
||||
b.Property<DateTime>("UnlockedAt")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("unlocked_at");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK_achievement");
|
||||
|
||||
b.HasIndex("PlayerUserId")
|
||||
.HasDatabaseName("IX_achievement_player_user_id");
|
||||
|
||||
b.HasIndex("PlayerUserId", "AchievementKey")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("achievement", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Content.Server.Database.Admin", b =>
|
||||
{
|
||||
b.Property<Guid>("UserId")
|
||||
@@ -986,6 +1017,16 @@ namespace Content.Server.Database.Migrations.Sqlite
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("age");
|
||||
|
||||
b.Property<string>("BarkVoice")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("bark_voice");
|
||||
|
||||
b.Property<string>("CharacterFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("character_flavor_text");
|
||||
|
||||
b.Property<string>("CharacterName")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
@@ -1016,6 +1057,11 @@ namespace Content.Server.Database.Migrations.Sqlite
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("gender");
|
||||
|
||||
b.Property<string>("GreenFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("green_flavor_text");
|
||||
|
||||
b.Property<string>("HairColor")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
@@ -1026,10 +1072,33 @@ namespace Content.Server.Database.Migrations.Sqlite
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("hair_name");
|
||||
|
||||
b.Property<float>("Height")
|
||||
.HasColumnType("REAL")
|
||||
.HasColumnName("height");
|
||||
|
||||
b.Property<string>("LinksFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("links_flavor_text");
|
||||
|
||||
b.Property<byte[]>("Markings")
|
||||
.HasColumnType("jsonb")
|
||||
.HasColumnName("markings");
|
||||
|
||||
b.Property<string>("NSFWFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("nsfwflavor_text");
|
||||
|
||||
b.Property<string>("OOCFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("oocflavor_text");
|
||||
|
||||
b.Property<byte[]>("OrganMarkings")
|
||||
.HasColumnType("jsonb")
|
||||
.HasColumnName("organ_markings");
|
||||
|
||||
b.Property<int>("PreferenceId")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("preference_id");
|
||||
@@ -1038,6 +1107,11 @@ namespace Content.Server.Database.Migrations.Sqlite
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("pref_unavailable");
|
||||
|
||||
b.Property<string>("RedFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("red_flavor_text");
|
||||
|
||||
b.Property<string>("Sex")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
@@ -1061,6 +1135,26 @@ namespace Content.Server.Database.Migrations.Sqlite
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("species");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<string>("TagsFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("tags_flavor_text");
|
||||
|
||||
b.Property<string>("Voice")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("voice");
|
||||
|
||||
b.Property<string>("YellowFlavorText")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("yellow_flavor_text");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK_profile");
|
||||
|
||||
@@ -1373,6 +1467,19 @@ namespace Content.Server.Database.Migrations.Sqlite
|
||||
b.ToTable("player_round", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Content.Server.Database.Achievement", b =>
|
||||
{
|
||||
b.HasOne("Content.Server.Database.Player", "Player")
|
||||
.WithMany("Achievements")
|
||||
.HasForeignKey("PlayerUserId")
|
||||
.HasPrincipalKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK_achievement_player_player_user_id");
|
||||
|
||||
b.Navigation("Player");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Content.Server.Database.Admin", b =>
|
||||
{
|
||||
b.HasOne("Content.Server.Database.AdminRank", "AdminRank")
|
||||
@@ -1968,6 +2075,8 @@ namespace Content.Server.Database.Migrations.Sqlite
|
||||
|
||||
modelBuilder.Entity("Content.Server.Database.Player", b =>
|
||||
{
|
||||
b.Navigation("Achievements");
|
||||
|
||||
b.Navigation("AdminLogs");
|
||||
|
||||
b.Navigation("AdminMessagesCreated");
|
||||
|
||||
Reference in New Issue
Block a user