From 22e019ab1793e75045cecd50c07c5dbe144e7d13 Mon Sep 17 00:00:00 2001 From: Jabak <163307958+Jabaks@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:38:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B8=D0=B7=D0=B4=D0=B5=D1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PostgresServerDbContextModelSnapshot.cs | 90 +++++++++---------- .../SqliteServerDbContextModelSnapshot.cs | 82 ++++++++--------- 2 files changed, 86 insertions(+), 86 deletions(-) diff --git a/Content.Server.Database/Migrations/Postgres/PostgresServerDbContextModelSnapshot.cs b/Content.Server.Database/Migrations/Postgres/PostgresServerDbContextModelSnapshot.cs index 4f384a1bc8..568201827f 100644 --- a/Content.Server.Database/Migrations/Postgres/PostgresServerDbContextModelSnapshot.cs +++ b/Content.Server.Database/Migrations/Postgres/PostgresServerDbContextModelSnapshot.cs @@ -910,37 +910,6 @@ namespace Content.Server.Database.Migrations.Postgres b.ToTable("profile", (string)null); }); - modelBuilder.Entity("Content.Server.Database.RoleplayInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("roleplay_info_id"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text") - .HasColumnName("name"); - - b.Property("ProfileId") - .HasColumnType("integer") - .HasColumnName("profile_id"); - - b.Property("Value") - .HasColumnType("integer") - .HasColumnName("value"); - - b.HasKey("Id") - .HasName("PK_roleplay_info"); - - b.HasIndex("ProfileId", "Name") - .IsUnique(); - - b.ToTable("roleplay_info", (string)null); - }); - modelBuilder.Entity("Content.Server.Database.ProfileLoadout", b => { b.Property("Id") @@ -1019,6 +988,37 @@ namespace Content.Server.Database.Migrations.Postgres b.ToTable("profile_role_loadout", (string)null); }); + modelBuilder.Entity("Content.Server.Database.RoleplayInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("roleplay_info_id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Name") + .IsRequired() + .HasColumnType("text") + .HasColumnName("name"); + + b.Property("ProfileId") + .HasColumnType("integer") + .HasColumnName("profile_id"); + + b.Property("Value") + .HasColumnType("integer") + .HasColumnName("value"); + + b.HasKey("Id") + .HasName("PK_roleplay_info"); + + b.HasIndex("ProfileId", "Name") + .IsUnique(); + + b.ToTable("roleplay_info", (string)null); + }); + modelBuilder.Entity("Content.Server.Database.Round", b => { b.Property("Id") @@ -1726,18 +1726,6 @@ namespace Content.Server.Database.Migrations.Postgres b.Navigation("Preference"); }); - modelBuilder.Entity("Content.Server.Database.RoleplayInfo", b => - { - b.HasOne("Content.Server.Database.Profile", "Profile") - .WithMany("RoleplayInfo") - .HasForeignKey("ProfileId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired() - .HasConstraintName("FK_roleplay_info_profile_profile_id"); - - b.Navigation("Profile"); - }); - modelBuilder.Entity("Content.Server.Database.ProfileLoadout", b => { b.HasOne("Content.Server.Database.ProfileLoadoutGroup", "ProfileLoadoutGroup") @@ -1774,6 +1762,18 @@ namespace Content.Server.Database.Migrations.Postgres b.Navigation("Profile"); }); + modelBuilder.Entity("Content.Server.Database.RoleplayInfo", b => + { + b.HasOne("Content.Server.Database.Profile", "Profile") + .WithMany("RoleplayInfo") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("FK_roleplay_info_profile_profile_id"); + + b.Navigation("Profile"); + }); + modelBuilder.Entity("Content.Server.Database.Round", b => { b.HasOne("Content.Server.Database.Server", "Server") @@ -1988,10 +1988,10 @@ namespace Content.Server.Database.Migrations.Postgres b.Navigation("Jobs"); - b.Navigation("RoleplayInfo"); - b.Navigation("Loadouts"); + b.Navigation("RoleplayInfo"); + b.Navigation("Traits"); }); diff --git a/Content.Server.Database/Migrations/Sqlite/SqliteServerDbContextModelSnapshot.cs b/Content.Server.Database/Migrations/Sqlite/SqliteServerDbContextModelSnapshot.cs index 24b1bce7ba..c8fa3d830d 100644 --- a/Content.Server.Database/Migrations/Sqlite/SqliteServerDbContextModelSnapshot.cs +++ b/Content.Server.Database/Migrations/Sqlite/SqliteServerDbContextModelSnapshot.cs @@ -859,35 +859,6 @@ namespace Content.Server.Database.Migrations.Sqlite b.ToTable("profile", (string)null); }); - modelBuilder.Entity("Content.Server.Database.RoleplayInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("INTEGER") - .HasColumnName("roleplay_info_id"); - - b.Property("Name") - .IsRequired() - .HasColumnType("TEXT") - .HasColumnName("name"); - - b.Property("ProfileId") - .HasColumnType("INTEGER") - .HasColumnName("profile_id"); - - b.Property("Value") - .HasColumnType("INTEGER") - .HasColumnName("value"); - - b.HasKey("Id") - .HasName("PK_roleplay_info"); - - b.HasIndex("ProfileId", "Name") - .IsUnique(); - - b.ToTable("roleplay_info", (string)null); - }); - modelBuilder.Entity("Content.Server.Database.ProfileLoadout", b => { b.Property("Id") @@ -960,6 +931,35 @@ namespace Content.Server.Database.Migrations.Sqlite b.ToTable("profile_role_loadout", (string)null); }); + modelBuilder.Entity("Content.Server.Database.RoleplayInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER") + .HasColumnName("roleplay_info_id"); + + b.Property("Name") + .IsRequired() + .HasColumnType("TEXT") + .HasColumnName("name"); + + b.Property("ProfileId") + .HasColumnType("INTEGER") + .HasColumnName("profile_id"); + + b.Property("Value") + .HasColumnType("INTEGER") + .HasColumnName("value"); + + b.HasKey("Id") + .HasName("PK_roleplay_info"); + + b.HasIndex("ProfileId", "Name") + .IsUnique(); + + b.ToTable("roleplay_info", (string)null); + }); + modelBuilder.Entity("Content.Server.Database.Round", b => { b.Property("Id") @@ -1645,18 +1645,6 @@ namespace Content.Server.Database.Migrations.Sqlite b.Navigation("Preference"); }); - modelBuilder.Entity("Content.Server.Database.RoleplayInfo", b => - { - b.HasOne("Content.Server.Database.Profile", "Profile") - .WithMany("RoleplayInfo") - .HasForeignKey("ProfileId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired() - .HasConstraintName("FK_roleplay_info_profile_profile_id"); - - b.Navigation("Profile"); - }); - modelBuilder.Entity("Content.Server.Database.ProfileLoadout", b => { b.HasOne("Content.Server.Database.ProfileLoadoutGroup", "ProfileLoadoutGroup") @@ -1693,6 +1681,18 @@ namespace Content.Server.Database.Migrations.Sqlite b.Navigation("Profile"); }); + modelBuilder.Entity("Content.Server.Database.RoleplayInfo", b => + { + b.HasOne("Content.Server.Database.Profile", "Profile") + .WithMany("RoleplayInfo") + .HasForeignKey("ProfileId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("FK_roleplay_info_profile_profile_id"); + + b.Navigation("Profile"); + }); + modelBuilder.Entity("Content.Server.Database.Round", b => { b.HasOne("Content.Server.Database.Server", "Server")