# Conflicts: # Content.Client/Administration/Managers/ClientAdminManager.cs # Content.Client/Administration/Systems/BwoinkSystem.cs # Content.Client/Alerts/ClientAlertsSystem.cs # Content.Client/Audio/BackgroundAudioSystem.cs # Content.Client/CardboardBox/CardboardBoxSystem.cs # Content.Client/Chemistry/UI/InjectorStatusControl.cs # Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml # Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml.cs # Content.Client/Clothing/ClientClothingSystem.cs # Content.Client/CriminalRecords/CriminalRecordsConsoleBoundUserInterface.cs # Content.Client/CriminalRecords/CriminalRecordsConsoleWindow.xaml.cs # Content.Client/Decals/Overlays/DecalOverlay.cs # Content.Client/DoAfter/DoAfterOverlay.cs # Content.Client/Doors/AirlockSystem.cs # Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml # Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs # Content.Client/Launcher/LauncherConnectingGui.xaml # Content.Client/Launcher/LauncherConnectingGui.xaml.cs # Content.Client/Lobby/LobbyState.cs # Content.Client/Lobby/UI/LobbyGui.xaml.cs # Content.Client/MainMenu/UI/MainMenuControl.xaml # Content.Client/MassMedia/Ui/MiniArticleCardControl.xaml # Content.Client/MassMedia/Ui/MiniArticleCardControl.xaml.cs # Content.Client/MassMedia/Ui/NewsWriteMenu.xaml # Content.Client/MassMedia/Ui/NewsWriteMenu.xaml.cs # Content.Client/Options/UI/Tabs/MiscTab.xaml # Content.Client/Options/UI/Tabs/MiscTab.xaml.cs # Content.Client/Outline/InteractionOutlineSystem.cs # Content.Client/Overlays/ShowSecurityIconsSystem.cs # Content.Client/Players/PlayTimeTracking/JobRequirementsManager.cs # Content.Client/Popups/PopupOverlay.cs # Content.Client/Popups/PopupSystem.cs # Content.Client/Preferences/ClientPreferencesManager.cs # Content.Client/Preferences/UI/HumanoidProfileEditor.xaml # Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs # Content.Client/StatusIcon/StatusIconOverlay.cs # Content.Client/Stylesheets/StyleNano.cs # Content.Client/UserInterface/Systems/Bwoink/AHelpUIController.cs # Content.Client/UserInterface/Systems/Chat/ChatUIController.cs # Content.Server/Access/Systems/IdCardConsoleSystem.cs # Content.Server/Administration/Commands/BanCommand.cs # Content.Server/Administration/Notes/AdminMessageEui.cs # Content.Server/Administration/Notes/AdminNotesSystem.cs # Content.Server/Administration/Notes/IAdminNotesManager.cs # Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs # Content.Server/Administration/Systems/BwoinkSystem.cs # Content.Server/Administration/UI/PermissionsEui.cs # Content.Server/Antag/AntagSelectionSystem.cs # Content.Server/Atmos/EntitySystems/BarotraumaSystem.cs # Content.Server/Atmos/Piping/Unary/EntitySystems/GasThermoMachineSystem.cs # Content.Server/Chat/Systems/ChatSystem.cs # Content.Server/Chemistry/EntitySystems/InjectorSystem.cs # Content.Server/Chemistry/EntitySystems/ReagentDispenserSystem.cs # Content.Server/Connection/ConnectionManager.cs # Content.Server/CriminalRecords/Systems/CriminalRecordsConsoleSystem.cs # Content.Server/Database/DatabaseRecords.cs # Content.Server/Database/ServerDbBase.cs # Content.Server/Database/ServerDbManager.cs # Content.Server/DeviceLinking/Systems/SignalTimerSystem.cs # Content.Server/Doors/Systems/DoorSystem.cs # Content.Server/Execution/ExecutionSystem.cs # Content.Server/Explosion/EntitySystems/ExplosionSystem.cs # Content.Server/Fax/FaxSystem.cs # Content.Server/Fluids/EntitySystems/PuddleSystem.Evaporation.cs # Content.Server/GameTicking/GameTicker.Replays.cs # Content.Server/GameTicking/GameTicker.RoundFlow.cs # Content.Server/GameTicking/Rules/Components/ThiefRuleComponent.cs # Content.Server/GameTicking/Rules/GameRuleSystem.Utility.cs # Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs # Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs # Content.Server/GameTicking/Rules/ThiefRuleSystem.cs # Content.Server/GameTicking/Rules/TraitorRuleSystem.cs # Content.Server/GameTicking/Rules/ZombieRuleSystem.cs # Content.Server/Hands/Systems/HandsSystem.cs # Content.Server/Holosign/HolosignSystem.cs # Content.Server/Humanoid/Systems/HumanoidAppearanceSystem.cs # Content.Server/Info/InfoSystem.cs # Content.Server/Kitchen/EntitySystems/SharpSystem.cs # Content.Server/Magic/MagicSystem.cs # Content.Server/MagicMirror/MagicMirrorSystem.cs # Content.Server/Mapping/MappingSystem.cs # Content.Server/MassMedia/Systems/NewsSystem.cs # Content.Server/Medical/Components/HealthAnalyzerComponent.cs # Content.Server/Medical/CrewMonitoring/CrewMonitoringServerSystem.cs # Content.Server/Medical/CryoPodSystem.cs # Content.Server/Medical/HealthAnalyzerSystem.cs # Content.Server/Nutrition/EntitySystems/OpenableSystem.cs # Content.Server/Preferences/Managers/ServerPreferencesManager.cs # Content.Server/Remotes/DoorRemoteSystem.cs # Content.Server/Resist/EscapeInventorySystem.cs # Content.Server/Revenant/EntitySystems/RevenantSystem.Abilities.cs # Content.Server/Shuttles/Systems/EmergencyShuttleSystem.Console.cs # Content.Server/Shuttles/Systems/EmergencyShuttleSystem.cs # Content.Server/Shuttles/Systems/ShuttleConsoleSystem.cs # Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs # Content.Server/Species/Systems/NymphSystem.cs # Content.Server/StationEvents/Components/GasLeakRuleComponent.cs # Content.Server/StationEvents/EventManagerSystem.cs # Content.Server/Store/Systems/StoreSystem.Ui.cs # Content.Server/Strip/StrippableSystem.cs # Content.Server/VendingMachines/VendingMachineSystem.cs # Content.Server/Weapons/Ranged/Systems/GunSystem.cs # Content.Shared.Database/LogType.cs # Content.Shared/Actions/SharedActionsSystem.cs # Content.Shared/Administration/AdminFlags.cs # Content.Shared/Administration/SharedBwoinkSystem.cs # Content.Shared/Anomaly/SharedAnomalySystem.cs # Content.Shared/Bed/Sleep/SharedSleepingSystem.cs # Content.Shared/Buckle/SharedBuckleSystem.Strap.cs # Content.Shared/Chat/ChatChannel.cs # Content.Shared/Chemistry/Components/InjectorComponent.cs # Content.Shared/Chemistry/EntitySystems/SharedInjectorSystem.cs # Content.Shared/Chemistry/SharedReagentDispenser.cs # Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs # Content.Shared/CriminalRecords/Systems/SharedCriminalRecordsConsoleSystem.cs # Content.Shared/Cuffs/SharedCuffableSystem.cs # Content.Shared/Doors/Systems/SharedDoorSystem.cs # Content.Shared/Friction/TileFrictionController.cs # Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs # Content.Shared/Humanoid/SharedHumanoidAppearanceSystem.cs # Content.Shared/Implants/SharedImplanterSystem.cs # Content.Shared/Lock/LockSystem.cs # Content.Shared/MedicalScanner/HealthAnalyzerScannedUserMessage.cs # Content.Shared/Nutrition/Components/OpenableComponent.cs # Content.Shared/Nutrition/EntitySystems/SharedOpenableSystem.cs # Content.Shared/Nutrition/EntitySystems/ThirstSystem.cs # Content.Shared/Preferences/HumanoidCharacterProfile.cs # Content.Shared/Preferences/ICharacterProfile.cs # Content.Shared/Projectiles/SharedProjectileSystem.cs # Content.Shared/Pulling/Systems/SharedPullingSystem.Actions.cs # Content.Shared/Security/SecurityStatus.cs # Content.Shared/Security/Systems/DeployableBarrierSystem.cs # Content.Shared/Slippery/SlipperySystem.cs # Content.Shared/Species/Systems/ReformSystem.cs # Content.Shared/Standing/StandingStateSystem.cs # Content.Shared/StatusIcon/StatusIconPrototype.cs # Content.Shared/Store/ListingPrototype.cs # Content.Shared/VendingMachines/SharedVendingMachineSystem.cs # Content.Shared/Weapons/Melee/SharedMeleeWeaponSystem.cs # README.md # Resources/Audio/Ambience/Antag/pirate_start.ogg # Resources/Changelog/Changelog.yml # Resources/Credits/GitHub.txt # Resources/Locale/en-US/criminal-records/criminal-records.ftl # Resources/Locale/en-US/escape-menu/ui/options-menu.ftl # Resources/Locale/en-US/medical/components/health-analyzer-component.ftl # Resources/Locale/en-US/reagents/meta/biological.ftl # Resources/Locale/en-US/reagents/meta/fun.ftl # Resources/Locale/en-US/reagents/meta/physical-desc.ftl # Resources/Locale/en-US/seeds/seeds.ftl # Resources/Locale/en-US/wires/wire-names.ftl # Resources/Maps/Shuttles/cargo_fland.yml # Resources/Maps/core.yml # Resources/Maps/europa.yml # Resources/Maps/fland.yml # Resources/Maps/origin.yml # Resources/Maps/saltern.yml # Resources/Maps/train.yml # Resources/Prototypes/Actions/diona.yml # Resources/Prototypes/Atmospherics/gases.yml # Resources/Prototypes/Catalog/Cargo/cargo_emergency.yml # Resources/Prototypes/Catalog/Cargo/cargo_engines.yml # Resources/Prototypes/Catalog/Cargo/cargo_fun.yml # Resources/Prototypes/Catalog/Cargo/cargo_security.yml # Resources/Prototypes/Catalog/Cargo/cargo_service.yml # Resources/Prototypes/Catalog/Cargo/cargo_vending.yml # Resources/Prototypes/Catalog/Fills/Boxes/general.yml # Resources/Prototypes/Catalog/Fills/Boxes/syndicate.yml # Resources/Prototypes/Catalog/Fills/Crates/engines.yml # Resources/Prototypes/Catalog/Fills/Items/briefcases.yml # Resources/Prototypes/Catalog/Fills/Items/toolboxes.yml # Resources/Prototypes/Catalog/Fills/Lockers/dressers.yml # Resources/Prototypes/Catalog/Fills/Lockers/heads.yml # Resources/Prototypes/Catalog/Fills/Lockers/security.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/bardrobe.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/clothesmate.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/lawdrobe.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/medical.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/medidrobe.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/robotics.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/sec.yml # Resources/Prototypes/Catalog/uplink_catalog.yml # Resources/Prototypes/Datasets/Names/first_male.yml # Resources/Prototypes/Datasets/tips.yml # Resources/Prototypes/Entities/Clothing/Hands/colored.yml # Resources/Prototypes/Entities/Clothing/Head/base_clothinghead.yml # Resources/Prototypes/Entities/Clothing/Head/hats.yml # Resources/Prototypes/Entities/Clothing/OuterClothing/coats.yml # Resources/Prototypes/Entities/Clothing/Uniforms/jumpsuits.yml # Resources/Prototypes/Entities/Mobs/NPCs/animals.yml # Resources/Prototypes/Entities/Mobs/Player/silicon.yml # Resources/Prototypes/Entities/Mobs/Species/base.yml # Resources/Prototypes/Entities/Mobs/Species/slime.yml # Resources/Prototypes/Entities/Mobs/Species/vox.yml # Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks.yml # Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_bottles.yml # Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml # Resources/Prototypes/Entities/Objects/Devices/Electronics/signaller.yml # Resources/Prototypes/Entities/Objects/Devices/nuke.yml # Resources/Prototypes/Entities/Objects/Devices/pda.yml # Resources/Prototypes/Entities/Objects/Fun/toys.yml # Resources/Prototypes/Entities/Objects/Materials/Sheets/glass.yml # Resources/Prototypes/Entities/Objects/Materials/parts.yml # Resources/Prototypes/Entities/Objects/Misc/identification_cards.yml # Resources/Prototypes/Entities/Objects/Misc/implanters.yml # Resources/Prototypes/Entities/Objects/Misc/kudzu.yml # Resources/Prototypes/Entities/Objects/Misc/rubber_stamp.yml # Resources/Prototypes/Entities/Objects/Shields/shields.yml # Resources/Prototypes/Entities/Objects/Specific/Hydroponics/tools.yml # Resources/Prototypes/Entities/Objects/Specific/Medical/handheld_crew_monitor.yml # Resources/Prototypes/Entities/Objects/Specific/Medical/healthanalyzer.yml # Resources/Prototypes/Entities/Objects/Specific/Robotics/borg_modules.yml # Resources/Prototypes/Entities/Objects/Weapons/Bombs/firebomb.yml # Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/shotgun.yml # Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Projectiles/shotgun.yml # Resources/Prototypes/Entities/Objects/Weapons/Melee/e_sword.yml # Resources/Prototypes/Entities/Structures/Decoration/curtains.yml # Resources/Prototypes/Entities/Structures/Doors/Airlocks/access.yml # Resources/Prototypes/Entities/Structures/Doors/MaterialDoors/material_doors.yml # Resources/Prototypes/Entities/Structures/Doors/Windoors/base_structurewindoors.yml # Resources/Prototypes/Entities/Structures/Lighting/base_lighting.yml # Resources/Prototypes/Entities/Structures/Machines/lathe.yml # Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml # Resources/Prototypes/Entities/Structures/Specific/Anomaly/anomalies.yml # Resources/Prototypes/Entities/Structures/Storage/glass_box.yml # Resources/Prototypes/Entities/Structures/Wallmounts/fireaxe_cabinet.yml # Resources/Prototypes/Entities/Structures/Wallmounts/switch.yml # Resources/Prototypes/Entities/Structures/Walls/asteroid.yml # Resources/Prototypes/Entities/Structures/Walls/grille.yml # Resources/Prototypes/Entities/Structures/Walls/walls.yml # Resources/Prototypes/Entities/Structures/Windows/window.yml # Resources/Prototypes/Entities/Structures/stairs.yml # Resources/Prototypes/GameRules/events.yml # Resources/Prototypes/Hydroponics/seeds.yml # Resources/Prototypes/Maps/saltern.yml # Resources/Prototypes/Reagents/biological.yml # Resources/Prototypes/Reagents/fun.yml # Resources/Prototypes/Recipes/Construction/Graphs/utilities/solarpanel.yml # Resources/Prototypes/Recipes/Construction/weapons.yml # Resources/Prototypes/Recipes/Crafting/improvised.yml # Resources/Prototypes/Recipes/Lathes/clothing.yml # Resources/Prototypes/Recipes/Reactions/fun.yml # Resources/Prototypes/Research/arsenal.yml # Resources/Prototypes/Roles/Jobs/Engineering/technical_assistant.yml # Resources/Prototypes/Roles/Jobs/Fun/emergencyresponseteam.yml # Resources/Prototypes/Roles/Jobs/Medical/medical_intern.yml # Resources/Prototypes/Roles/Jobs/Medical/paramedic.yml # Resources/Prototypes/Roles/Jobs/Science/research_assistant.yml # Resources/Prototypes/Roles/Jobs/Security/detective.yml # Resources/Prototypes/Roles/Jobs/Security/security_cadet.yml # Resources/Prototypes/Roles/Jobs/departments.yml # Resources/Prototypes/Species/human.yml # Resources/Prototypes/Species/vox.yml # Resources/Prototypes/Stacks/Materials/materials.yml # Resources/Prototypes/StatusEffects/health.yml # Resources/Prototypes/Tiles/plating.yml # Resources/Prototypes/Voice/speech_emote_sounds.yml # Resources/Prototypes/Voice/speech_emotes.yml # Resources/Prototypes/explosion.yml # Resources/Prototypes/game_presets.yml # Resources/Prototypes/lobbyscreens.yml # Resources/Prototypes/secret_weights.yml # Resources/Prototypes/tags.yml # Resources/ServerInfo/Guidebook/Jobs.xml # Resources/ServerInfo/Guidebook/Science/ArtifactReports.xml # Resources/Textures/Clothing/Belt/emt.rsi/meta.json # Resources/Textures/Clothing/Head/Hats/beret_medic.rsi/meta.json # Resources/Textures/Clothing/Head/Hats/beret_qm.rsi/meta.json # Resources/Textures/Clothing/Head/Soft/bluesoft_flipped.rsi/meta.json # Resources/Textures/Clothing/Head/Soft/corpsoft_flipped.rsi/meta.json # Resources/Textures/Clothing/Head/Soft/greensoft_flipped.rsi/meta.json # Resources/Textures/Clothing/Head/Soft/greysoft_flipped.rsi/meta.json # Resources/Textures/Clothing/Head/Soft/paramedicsoft_flipped.rsi/meta.json # Resources/Textures/Clothing/Mask/neckgaiterred.rsi/meta.json # Resources/Textures/Clothing/OuterClothing/Hardsuits/slayer.rsi/meta.json # Resources/Textures/Clothing/OuterClothing/Hardsuits/syndicate.rsi/meta.json # Resources/Textures/Clothing/OuterClothing/Suits/syndicate.rsi/meta.json # Resources/Textures/Clothing/Uniforms/Jumpsuit/qmformal.rsi/meta.json # Resources/Textures/Decals/Overlays/greyscale.rsi/checkerNESW.png # Resources/Textures/Decals/Overlays/greyscale.rsi/checkerNWSE.png # Resources/Textures/Decals/Overlays/greyscale.rsi/fulltile_overlay.png # Resources/Textures/Decals/Overlays/greyscale.rsi/halftile_overlay.png # Resources/Textures/Decals/Overlays/greyscale.rsi/halftile_overlay_180.png # Resources/Textures/Decals/Overlays/greyscale.rsi/halftile_overlay_270.png # Resources/Textures/Decals/Overlays/greyscale.rsi/halftile_overlay_90.png # Resources/Textures/Decals/Overlays/greyscale.rsi/quartertile_overlay.png # Resources/Textures/Decals/Overlays/greyscale.rsi/quartertile_overlay_180.png # Resources/Textures/Decals/Overlays/greyscale.rsi/quartertile_overlay_270.png # Resources/Textures/Decals/Overlays/greyscale.rsi/quartertile_overlay_90.png # Resources/Textures/Decals/Overlays/greyscale.rsi/threequartertile_overlay.png # Resources/Textures/Decals/Overlays/greyscale.rsi/threequartertile_overlay_180.png # Resources/Textures/Decals/Overlays/greyscale.rsi/threequartertile_overlay_270.png # Resources/Textures/Decals/Overlays/greyscale.rsi/threequartertile_overlay_90.png # Resources/Textures/Interface/Misc/job_icons.rsi/meta.json # Resources/Textures/Interface/emotions.svg.192dpi.png.yml # Resources/Textures/LobbyScreens/dead-in-space.png.yml # Resources/Textures/LobbyScreens/doomed.webp.yml # Resources/Textures/LobbyScreens/pharmacy.png.yml # Resources/Textures/LobbyScreens/pharmacy.webp.yml # Resources/Textures/LobbyScreens/robotics.webp.yml # Resources/Textures/LobbyScreens/supermatter.png.yml # Resources/Textures/LobbyScreens/susstation.png.yml # Resources/Textures/LobbyScreens/warden.png.yml # Resources/Textures/LobbyScreens/warden.webp.yml # Resources/Textures/Mobs/Customization/human_hair.rsi/meta.json # Resources/Textures/Mobs/Effects/brute_damage.rsi/LLeg_Brute_40.png # Resources/Textures/Mobs/Effects/brute_damage.rsi/RLeg_Brute_40.png # Resources/Textures/Objects/Devices/nuke.rsi/meta.json # Resources/Textures/Objects/Devices/nuke.rsi/nuclearbomb_deployed.png # Resources/Textures/Objects/Devices/nuke.rsi/nuclearbomb_exploding.png # Resources/Textures/Objects/Devices/nuke.rsi/nuclearbomb_timing.png # Resources/Textures/Objects/Misc/books.rsi/meta.json # Resources/Textures/Objects/Misc/bureaucracy.rsi/paper_stamp-lawyer.png # Resources/Textures/Objects/Storage/boxes.rsi/meta.json # Resources/Textures/Objects/Tools/t-ray.rsi/tray-off.png # Resources/Textures/Objects/Tools/t-ray.rsi/tray-on.png # Resources/Textures/Objects/Weapons/Guns/Battery/mini-ebow.rsi/bolt.png # Resources/Textures/Structures/Doors/Airlocks/Standard/external.rsi/emergency_open_unlit.png # Resources/Textures/Structures/Doors/Airlocks/Standard/shuttle_syndicate.rsi/emergency_open_unlit.png # Resources/Textures/Structures/Doors/Windoors/plasma.rsi/emergency_unlit.png # Resources/Textures/Structures/Doors/Windoors/uranium.rsi/emergency_unlit.png # Resources/Textures/Structures/Power/Generation/Singularity/emitter.rsi/locked.png # Resources/Textures/Tiles/attributions.yml # Resources/Textures/Tiles/shuttleblue.png # Resources/Textures/Tiles/shuttleorange.png # Resources/Textures/Tiles/shuttlepurple.png # Resources/Textures/Tiles/shuttlered.png # Resources/Textures/Tiles/shuttlewhite.png # Resources/Textures/White/Fluff/DOOMMAX/cap_cap.rsi/meta.json # Resources/Textures/White/Fluff/HSKveez/hardsuit.rsi/meta.json # Resources/Textures/White/Fluff/Vtergot/strictgloves.rsi/meta.json # Resources/clientCommandPerms.yml # Resources/migration.yml
1826 lines
70 KiB
C#
1826 lines
70 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using System.Net;
|
|
using System.Text.Json;
|
|
using Content.Server.Database;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
using NpgsqlTypes;
|
|
|
|
#nullable disable
|
|
|
|
namespace Content.Server.Database.Migrations.Postgres
|
|
{
|
|
[DbContext(typeof(PostgresServerDbContext))]
|
|
partial class PostgresServerDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.0")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Admin", b =>
|
|
{
|
|
b.Property<Guid>("UserId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("user_id");
|
|
|
|
b.Property<int?>("AdminRankId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("admin_rank_id");
|
|
|
|
b.Property<string>("AdminServer")
|
|
.HasColumnType("text")
|
|
.HasColumnName("admin_server");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("text")
|
|
.HasColumnName("title");
|
|
|
|
b.HasKey("UserId")
|
|
.HasName("PK_admin");
|
|
|
|
b.HasIndex("AdminRankId")
|
|
.HasDatabaseName("IX_admin_admin_rank_id");
|
|
|
|
b.ToTable("admin", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminFlag", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("admin_flag_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<Guid>("AdminId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("admin_id");
|
|
|
|
b.Property<string>("Flag")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("flag");
|
|
|
|
b.Property<bool>("Negative")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("negative");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_admin_flag");
|
|
|
|
b.HasIndex("AdminId")
|
|
.HasDatabaseName("IX_admin_flag_admin_id");
|
|
|
|
b.HasIndex("Flag", "AdminId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("admin_flag", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminLog", b =>
|
|
{
|
|
b.Property<int>("RoundId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("round_id");
|
|
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("admin_log_id");
|
|
|
|
b.Property<DateTime>("Date")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("date");
|
|
|
|
b.Property<short>("Impact")
|
|
.HasColumnType("smallint")
|
|
.HasColumnName("impact");
|
|
|
|
b.Property<JsonDocument>("Json")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("json");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("message");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("type");
|
|
|
|
b.HasKey("RoundId", "Id")
|
|
.HasName("PK_admin_log");
|
|
|
|
b.HasIndex("Date");
|
|
|
|
b.HasIndex("Message")
|
|
.HasAnnotation("Npgsql:TsVectorConfig", "english");
|
|
|
|
NpgsqlIndexBuilderExtensions.HasMethod(b.HasIndex("Message"), "GIN");
|
|
|
|
b.HasIndex("Type")
|
|
.HasDatabaseName("IX_admin_log_type");
|
|
|
|
b.ToTable("admin_log", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminLogPlayer", b =>
|
|
{
|
|
b.Property<int>("RoundId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("round_id");
|
|
|
|
b.Property<int>("LogId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("log_id");
|
|
|
|
b.Property<Guid>("PlayerUserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("player_user_id");
|
|
|
|
b.HasKey("RoundId", "LogId", "PlayerUserId")
|
|
.HasName("PK_admin_log_player");
|
|
|
|
b.HasIndex("PlayerUserId")
|
|
.HasDatabaseName("IX_admin_log_player_player_user_id");
|
|
|
|
b.ToTable("admin_log_player", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminMessage", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("admin_messages_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("created_at");
|
|
|
|
b.Property<Guid?>("CreatedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("created_by_id");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("deleted");
|
|
|
|
b.Property<DateTime?>("DeletedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("deleted_at");
|
|
|
|
b.Property<Guid?>("DeletedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("deleted_by_id");
|
|
|
|
b.Property<bool>("Dismissed")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("dismissed");
|
|
|
|
b.Property<DateTime?>("ExpirationTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("expiration_time");
|
|
|
|
b.Property<DateTime?>("LastEditedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_edited_at");
|
|
|
|
b.Property<Guid?>("LastEditedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("last_edited_by_id");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("message");
|
|
|
|
b.Property<Guid?>("PlayerUserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("player_user_id");
|
|
|
|
b.Property<TimeSpan>("PlaytimeAtNote")
|
|
.HasColumnType("interval")
|
|
.HasColumnName("playtime_at_note");
|
|
|
|
b.Property<int?>("RoundId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("round_id");
|
|
|
|
b.Property<bool>("Seen")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("seen");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_admin_messages");
|
|
|
|
b.HasIndex("CreatedById");
|
|
|
|
b.HasIndex("DeletedById");
|
|
|
|
b.HasIndex("LastEditedById");
|
|
|
|
b.HasIndex("PlayerUserId")
|
|
.HasDatabaseName("IX_admin_messages_player_user_id");
|
|
|
|
b.HasIndex("RoundId")
|
|
.HasDatabaseName("IX_admin_messages_round_id");
|
|
|
|
b.ToTable("admin_messages", null, t =>
|
|
{
|
|
t.HasCheckConstraint("NotDismissedAndSeen", "NOT dismissed OR seen");
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminNote", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("admin_notes_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("created_at");
|
|
|
|
b.Property<Guid?>("CreatedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("created_by_id");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("deleted");
|
|
|
|
b.Property<DateTime?>("DeletedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("deleted_at");
|
|
|
|
b.Property<Guid?>("DeletedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("deleted_by_id");
|
|
|
|
b.Property<DateTime?>("ExpirationTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("expiration_time");
|
|
|
|
b.Property<DateTime?>("LastEditedAt")
|
|
.IsRequired()
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_edited_at");
|
|
|
|
b.Property<Guid?>("LastEditedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("last_edited_by_id");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("message");
|
|
|
|
b.Property<Guid?>("PlayerUserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("player_user_id");
|
|
|
|
b.Property<TimeSpan>("PlaytimeAtNote")
|
|
.HasColumnType("interval")
|
|
.HasColumnName("playtime_at_note");
|
|
|
|
b.Property<int?>("RoundId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("round_id");
|
|
|
|
b.Property<bool>("Secret")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("secret");
|
|
|
|
b.Property<int>("Severity")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("severity");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_admin_notes");
|
|
|
|
b.HasIndex("CreatedById");
|
|
|
|
b.HasIndex("DeletedById");
|
|
|
|
b.HasIndex("LastEditedById");
|
|
|
|
b.HasIndex("PlayerUserId")
|
|
.HasDatabaseName("IX_admin_notes_player_user_id");
|
|
|
|
b.HasIndex("RoundId")
|
|
.HasDatabaseName("IX_admin_notes_round_id");
|
|
|
|
b.ToTable("admin_notes", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminRank", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("admin_rank_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("name");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_admin_rank");
|
|
|
|
b.ToTable("admin_rank", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminRankFlag", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("admin_rank_flag_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("AdminRankId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("admin_rank_id");
|
|
|
|
b.Property<string>("Flag")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("flag");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_admin_rank_flag");
|
|
|
|
b.HasIndex("AdminRankId");
|
|
|
|
b.HasIndex("Flag", "AdminRankId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("admin_rank_flag", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminWatchlist", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("admin_watchlists_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("created_at");
|
|
|
|
b.Property<Guid?>("CreatedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("created_by_id");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("deleted");
|
|
|
|
b.Property<DateTime?>("DeletedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("deleted_at");
|
|
|
|
b.Property<Guid?>("DeletedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("deleted_by_id");
|
|
|
|
b.Property<DateTime?>("ExpirationTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("expiration_time");
|
|
|
|
b.Property<DateTime?>("LastEditedAt")
|
|
.IsRequired()
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_edited_at");
|
|
|
|
b.Property<Guid?>("LastEditedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("last_edited_by_id");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("message");
|
|
|
|
b.Property<Guid?>("PlayerUserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("player_user_id");
|
|
|
|
b.Property<TimeSpan>("PlaytimeAtNote")
|
|
.HasColumnType("interval")
|
|
.HasColumnName("playtime_at_note");
|
|
|
|
b.Property<int?>("RoundId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("round_id");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_admin_watchlists");
|
|
|
|
b.HasIndex("CreatedById");
|
|
|
|
b.HasIndex("DeletedById");
|
|
|
|
b.HasIndex("LastEditedById");
|
|
|
|
b.HasIndex("PlayerUserId")
|
|
.HasDatabaseName("IX_admin_watchlists_player_user_id");
|
|
|
|
b.HasIndex("RoundId")
|
|
.HasDatabaseName("IX_admin_watchlists_round_id");
|
|
|
|
b.ToTable("admin_watchlists", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Antag", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("antag_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("AntagName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("antag_name");
|
|
|
|
b.Property<int>("ProfileId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("profile_id");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_antag");
|
|
|
|
b.HasIndex("ProfileId", "AntagName")
|
|
.IsUnique();
|
|
|
|
b.ToTable("antag", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AssignedUserId", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("assigned_user_id_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("user_id");
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("user_name");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_assigned_user_id");
|
|
|
|
b.HasIndex("UserId")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("UserName")
|
|
.IsUnique();
|
|
|
|
b.ToTable("assigned_user_id", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ConnectionLog", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("connection_log_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<IPAddress>("Address")
|
|
.IsRequired()
|
|
.HasColumnType("inet")
|
|
.HasColumnName("address");
|
|
|
|
b.Property<byte?>("Denied")
|
|
.HasColumnType("smallint")
|
|
.HasColumnName("denied");
|
|
|
|
b.Property<byte[]>("HWId")
|
|
.HasColumnType("bytea")
|
|
.HasColumnName("hwid");
|
|
|
|
b.Property<int>("ServerId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasDefaultValue(0)
|
|
.HasColumnName("server_id");
|
|
|
|
b.Property<DateTime>("Time")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("time");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("user_id");
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("user_name");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_connection_log");
|
|
|
|
b.HasIndex("ServerId")
|
|
.HasDatabaseName("IX_connection_log_server_id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("connection_log", null, t =>
|
|
{
|
|
t.HasCheckConstraint("AddressNotIPv6MappedIPv4", "NOT inet '::ffff:0.0.0.0/96' >>= address");
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Job", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("job_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("JobName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("job_name");
|
|
|
|
b.Property<int>("Priority")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("priority");
|
|
|
|
b.Property<int>("ProfileId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("profile_id");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_job");
|
|
|
|
b.HasIndex("ProfileId");
|
|
|
|
b.HasIndex("ProfileId", "JobName")
|
|
.IsUnique();
|
|
|
|
b.HasIndex(new[] { "ProfileId" }, "IX_job_one_high_priority")
|
|
.IsUnique()
|
|
.HasFilter("priority = 3");
|
|
|
|
b.ToTable("job", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.PlayTime", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("play_time_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<Guid>("PlayerId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("player_id");
|
|
|
|
b.Property<TimeSpan>("TimeSpent")
|
|
.HasColumnType("interval")
|
|
.HasColumnName("time_spent");
|
|
|
|
b.Property<string>("Tracker")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("tracker");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_play_time");
|
|
|
|
b.HasIndex("PlayerId", "Tracker")
|
|
.IsUnique();
|
|
|
|
b.ToTable("play_time", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Player", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("player_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime>("FirstSeenTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("first_seen_time");
|
|
|
|
b.Property<DateTime?>("LastReadRules")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_read_rules");
|
|
|
|
b.Property<IPAddress>("LastSeenAddress")
|
|
.IsRequired()
|
|
.HasColumnType("inet")
|
|
.HasColumnName("last_seen_address");
|
|
|
|
b.Property<byte[]>("LastSeenHWId")
|
|
.HasColumnType("bytea")
|
|
.HasColumnName("last_seen_hwid");
|
|
|
|
b.Property<DateTime>("LastSeenTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_seen_time");
|
|
|
|
b.Property<string>("LastSeenUserName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("last_seen_user_name");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("user_id");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_player");
|
|
|
|
b.HasAlternateKey("UserId")
|
|
.HasName("ak_player_user_id");
|
|
|
|
b.HasIndex("LastSeenUserName");
|
|
|
|
b.HasIndex("UserId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("player", null, t =>
|
|
{
|
|
t.HasCheckConstraint("LastSeenAddressNotIPv6MappedIPv4", "NOT inet '::ffff:0.0.0.0/96' >>= last_seen_address");
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.PlayerReputation", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("player_reputations_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<float>("Reputation")
|
|
.HasColumnType("real")
|
|
.HasColumnName("reputation");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("user_id");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_player_reputations");
|
|
|
|
b.ToTable("player_reputations", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Preference", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("preference_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("AdminOOCColor")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("admin_ooc_color");
|
|
|
|
b.Property<int>("SelectedCharacterSlot")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("selected_character_slot");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("user_id");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_preference");
|
|
|
|
b.HasIndex("UserId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("preference", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Profile", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("profile_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("Age")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("age");
|
|
|
|
b.Property<string>("Backpack")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("backpack");
|
|
|
|
b.Property<string>("BodyType")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("body_type");
|
|
|
|
b.Property<string>("BorgName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("borg_name");
|
|
|
|
b.Property<string>("CharacterName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("char_name");
|
|
|
|
b.Property<string>("Clothing")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("clothing");
|
|
|
|
b.Property<string>("ClownName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("clown_name");
|
|
|
|
b.Property<string>("EyeColor")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("eye_color");
|
|
|
|
b.Property<string>("FacialHairColor")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("facial_hair_color");
|
|
|
|
b.Property<string>("FacialHairName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("facial_hair_name");
|
|
|
|
b.Property<string>("FlavorText")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("flavor_text");
|
|
|
|
b.Property<string>("Gender")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("gender");
|
|
|
|
b.Property<string>("HairColor")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("hair_color");
|
|
|
|
b.Property<string>("HairName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("hair_name");
|
|
|
|
b.Property<JsonDocument>("Markings")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("markings");
|
|
|
|
b.Property<string>("MimeName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("mime_name");
|
|
|
|
b.Property<int>("PreferenceId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("preference_id");
|
|
|
|
b.Property<int>("PreferenceUnavailable")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("pref_unavailable");
|
|
|
|
b.Property<string>("Sex")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("sex");
|
|
|
|
b.Property<string>("SkinColor")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("skin_color");
|
|
|
|
b.Property<int>("Slot")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("slot");
|
|
|
|
b.Property<int>("SpawnPriority")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("spawn_priority");
|
|
|
|
b.Property<string>("Species")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("species");
|
|
|
|
b.Property<string>("Voice")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("voice");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_profile");
|
|
|
|
b.HasIndex("PreferenceId")
|
|
.HasDatabaseName("IX_profile_preference_id");
|
|
|
|
b.HasIndex("Slot", "PreferenceId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("profile", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Round", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("round_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("ServerId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("server_id");
|
|
|
|
b.Property<DateTime>("StartDate")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasDefaultValue(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified))
|
|
.HasColumnName("start_date");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_round");
|
|
|
|
b.HasIndex("ServerId")
|
|
.HasDatabaseName("IX_round_server_id");
|
|
|
|
b.HasIndex("StartDate");
|
|
|
|
b.ToTable("round", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Server", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("server_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("name");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_server");
|
|
|
|
b.ToTable("server", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerBan", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("server_ban_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<NpgsqlInet?>("Address")
|
|
.HasColumnType("inet")
|
|
.HasColumnName("address");
|
|
|
|
b.Property<bool>("AutoDelete")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("auto_delete");
|
|
|
|
b.Property<DateTime>("BanTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("ban_time");
|
|
|
|
b.Property<Guid?>("BanningAdmin")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("banning_admin");
|
|
|
|
b.Property<int>("ExemptFlags")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("exempt_flags");
|
|
|
|
b.Property<DateTime?>("ExpirationTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("expiration_time");
|
|
|
|
b.Property<byte[]>("HWId")
|
|
.HasColumnType("bytea")
|
|
.HasColumnName("hwid");
|
|
|
|
b.Property<bool>("Hidden")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("hidden");
|
|
|
|
b.Property<DateTime?>("LastEditedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_edited_at");
|
|
|
|
b.Property<Guid?>("LastEditedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("last_edited_by_id");
|
|
|
|
b.Property<Guid?>("PlayerUserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("player_user_id");
|
|
|
|
b.Property<TimeSpan>("PlaytimeAtNote")
|
|
.HasColumnType("interval")
|
|
.HasColumnName("playtime_at_note");
|
|
|
|
b.Property<string>("Reason")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("reason");
|
|
|
|
b.Property<int?>("RoundId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("round_id");
|
|
|
|
b.Property<string>("ServerName")
|
|
.HasColumnType("text")
|
|
.HasColumnName("server_name");
|
|
|
|
b.Property<int>("Severity")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("severity");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_server_ban");
|
|
|
|
b.HasIndex("Address");
|
|
|
|
b.HasIndex("BanningAdmin");
|
|
|
|
b.HasIndex("LastEditedById");
|
|
|
|
b.HasIndex("PlayerUserId")
|
|
.HasDatabaseName("IX_server_ban_player_user_id");
|
|
|
|
b.HasIndex("RoundId")
|
|
.HasDatabaseName("IX_server_ban_round_id");
|
|
|
|
b.ToTable("server_ban", null, t =>
|
|
{
|
|
t.HasCheckConstraint("AddressNotIPv6MappedIPv4", "NOT inet '::ffff:0.0.0.0/96' >>= address");
|
|
|
|
t.HasCheckConstraint("HaveEitherAddressOrUserIdOrHWId", "address IS NOT NULL OR player_user_id IS NOT NULL OR hwid IS NOT NULL");
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerBanExemption", b =>
|
|
{
|
|
b.Property<Guid>("UserId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("user_id");
|
|
|
|
b.Property<int>("Flags")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("flags");
|
|
|
|
b.HasKey("UserId")
|
|
.HasName("PK_server_ban_exemption");
|
|
|
|
b.ToTable("server_ban_exemption", null, t =>
|
|
{
|
|
t.HasCheckConstraint("FlagsNotZero", "flags != 0");
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerBanHit", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("server_ban_hit_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("BanId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("ban_id");
|
|
|
|
b.Property<int>("ConnectionId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("connection_id");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_server_ban_hit");
|
|
|
|
b.HasIndex("BanId")
|
|
.HasDatabaseName("IX_server_ban_hit_ban_id");
|
|
|
|
b.HasIndex("ConnectionId")
|
|
.HasDatabaseName("IX_server_ban_hit_connection_id");
|
|
|
|
b.ToTable("server_ban_hit", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerRoleBan", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("server_role_ban_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<NpgsqlInet?>("Address")
|
|
.HasColumnType("inet")
|
|
.HasColumnName("address");
|
|
|
|
b.Property<DateTime>("BanTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("ban_time");
|
|
|
|
b.Property<Guid?>("BanningAdmin")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("banning_admin");
|
|
|
|
b.Property<DateTime?>("ExpirationTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("expiration_time");
|
|
|
|
b.Property<byte[]>("HWId")
|
|
.HasColumnType("bytea")
|
|
.HasColumnName("hwid");
|
|
|
|
b.Property<bool>("Hidden")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("hidden");
|
|
|
|
b.Property<DateTime?>("LastEditedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_edited_at");
|
|
|
|
b.Property<Guid?>("LastEditedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("last_edited_by_id");
|
|
|
|
b.Property<Guid?>("PlayerUserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("player_user_id");
|
|
|
|
b.Property<TimeSpan>("PlaytimeAtNote")
|
|
.HasColumnType("interval")
|
|
.HasColumnName("playtime_at_note");
|
|
|
|
b.Property<string>("Reason")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("reason");
|
|
|
|
b.Property<string>("RoleId")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("role_id");
|
|
|
|
b.Property<int?>("RoundId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("round_id");
|
|
|
|
b.Property<string>("ServerName")
|
|
.HasColumnType("text")
|
|
.HasColumnName("server_name");
|
|
|
|
b.Property<int>("Severity")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("severity");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_server_role_ban");
|
|
|
|
b.HasIndex("Address");
|
|
|
|
b.HasIndex("BanningAdmin");
|
|
|
|
b.HasIndex("LastEditedById");
|
|
|
|
b.HasIndex("PlayerUserId")
|
|
.HasDatabaseName("IX_server_role_ban_player_user_id");
|
|
|
|
b.HasIndex("RoundId")
|
|
.HasDatabaseName("IX_server_role_ban_round_id");
|
|
|
|
b.ToTable("server_role_ban", null, t =>
|
|
{
|
|
t.HasCheckConstraint("AddressNotIPv6MappedIPv4", "NOT inet '::ffff:0.0.0.0/96' >>= address");
|
|
|
|
t.HasCheckConstraint("HaveEitherAddressOrUserIdOrHWId", "address IS NOT NULL OR player_user_id IS NOT NULL OR hwid IS NOT NULL");
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerRoleUnban", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("role_unban_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("BanId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("ban_id");
|
|
|
|
b.Property<DateTime>("UnbanTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("unban_time");
|
|
|
|
b.Property<Guid?>("UnbanningAdmin")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("unbanning_admin");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_server_role_unban");
|
|
|
|
b.HasIndex("BanId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("server_role_unban", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerUnban", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("unban_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("BanId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("ban_id");
|
|
|
|
b.Property<DateTime>("UnbanTime")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("unban_time");
|
|
|
|
b.Property<Guid?>("UnbanningAdmin")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("unbanning_admin");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_server_unban");
|
|
|
|
b.HasIndex("BanId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("server_unban", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Trait", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("trait_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("ProfileId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("profile_id");
|
|
|
|
b.Property<string>("TraitName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("trait_name");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_trait");
|
|
|
|
b.HasIndex("ProfileId", "TraitName")
|
|
.IsUnique();
|
|
|
|
b.ToTable("trait", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.UploadedResourceLog", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer")
|
|
.HasColumnName("uploaded_resource_log_id");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<byte[]>("Data")
|
|
.IsRequired()
|
|
.HasColumnType("bytea")
|
|
.HasColumnName("data");
|
|
|
|
b.Property<DateTime>("Date")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("date");
|
|
|
|
b.Property<string>("Path")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("path");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("user_id");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("PK_uploaded_resource_log");
|
|
|
|
b.ToTable("uploaded_resource_log", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Whitelist", b =>
|
|
{
|
|
b.Property<Guid>("UserId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("user_id");
|
|
|
|
b.HasKey("UserId")
|
|
.HasName("PK_whitelist");
|
|
|
|
b.ToTable("whitelist", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("PlayerRound", b =>
|
|
{
|
|
b.Property<int>("PlayersId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("players_id");
|
|
|
|
b.Property<int>("RoundsId")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("rounds_id");
|
|
|
|
b.HasKey("PlayersId", "RoundsId")
|
|
.HasName("PK_player_round");
|
|
|
|
b.HasIndex("RoundsId")
|
|
.HasDatabaseName("IX_player_round_rounds_id");
|
|
|
|
b.ToTable("player_round", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Admin", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.AdminRank", "AdminRank")
|
|
.WithMany("Admins")
|
|
.HasForeignKey("AdminRankId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_admin_admin_rank_admin_rank_id");
|
|
|
|
b.Navigation("AdminRank");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminFlag", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Admin", "Admin")
|
|
.WithMany("Flags")
|
|
.HasForeignKey("AdminId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_admin_flag_admin_admin_id");
|
|
|
|
b.Navigation("Admin");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminLog", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Round", "Round")
|
|
.WithMany("AdminLogs")
|
|
.HasForeignKey("RoundId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_admin_log_round_round_id");
|
|
|
|
b.Navigation("Round");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminLogPlayer", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Player", "Player")
|
|
.WithMany("AdminLogs")
|
|
.HasForeignKey("PlayerUserId")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_admin_log_player_player_player_user_id");
|
|
|
|
b.HasOne("Content.Server.Database.AdminLog", "Log")
|
|
.WithMany("Players")
|
|
.HasForeignKey("RoundId", "LogId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_admin_log_player_admin_log_round_id_log_id");
|
|
|
|
b.Navigation("Log");
|
|
|
|
b.Navigation("Player");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminMessage", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Player", "CreatedBy")
|
|
.WithMany("AdminMessagesCreated")
|
|
.HasForeignKey("CreatedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_admin_messages_player_created_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "DeletedBy")
|
|
.WithMany("AdminMessagesDeleted")
|
|
.HasForeignKey("DeletedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_admin_messages_player_deleted_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "LastEditedBy")
|
|
.WithMany("AdminMessagesLastEdited")
|
|
.HasForeignKey("LastEditedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_admin_messages_player_last_edited_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "Player")
|
|
.WithMany("AdminMessagesReceived")
|
|
.HasForeignKey("PlayerUserId")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.HasConstraintName("FK_admin_messages_player_player_user_id");
|
|
|
|
b.HasOne("Content.Server.Database.Round", "Round")
|
|
.WithMany()
|
|
.HasForeignKey("RoundId")
|
|
.HasConstraintName("FK_admin_messages_round_round_id");
|
|
|
|
b.Navigation("CreatedBy");
|
|
|
|
b.Navigation("DeletedBy");
|
|
|
|
b.Navigation("LastEditedBy");
|
|
|
|
b.Navigation("Player");
|
|
|
|
b.Navigation("Round");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminNote", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Player", "CreatedBy")
|
|
.WithMany("AdminNotesCreated")
|
|
.HasForeignKey("CreatedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_admin_notes_player_created_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "DeletedBy")
|
|
.WithMany("AdminNotesDeleted")
|
|
.HasForeignKey("DeletedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_admin_notes_player_deleted_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "LastEditedBy")
|
|
.WithMany("AdminNotesLastEdited")
|
|
.HasForeignKey("LastEditedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_admin_notes_player_last_edited_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "Player")
|
|
.WithMany("AdminNotesReceived")
|
|
.HasForeignKey("PlayerUserId")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.HasConstraintName("FK_admin_notes_player_player_user_id");
|
|
|
|
b.HasOne("Content.Server.Database.Round", "Round")
|
|
.WithMany()
|
|
.HasForeignKey("RoundId")
|
|
.HasConstraintName("FK_admin_notes_round_round_id");
|
|
|
|
b.Navigation("CreatedBy");
|
|
|
|
b.Navigation("DeletedBy");
|
|
|
|
b.Navigation("LastEditedBy");
|
|
|
|
b.Navigation("Player");
|
|
|
|
b.Navigation("Round");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminRankFlag", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.AdminRank", "Rank")
|
|
.WithMany("Flags")
|
|
.HasForeignKey("AdminRankId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_admin_rank_flag_admin_rank_admin_rank_id");
|
|
|
|
b.Navigation("Rank");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminWatchlist", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Player", "CreatedBy")
|
|
.WithMany("AdminWatchlistsCreated")
|
|
.HasForeignKey("CreatedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_admin_watchlists_player_created_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "DeletedBy")
|
|
.WithMany("AdminWatchlistsDeleted")
|
|
.HasForeignKey("DeletedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_admin_watchlists_player_deleted_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "LastEditedBy")
|
|
.WithMany("AdminWatchlistsLastEdited")
|
|
.HasForeignKey("LastEditedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_admin_watchlists_player_last_edited_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "Player")
|
|
.WithMany("AdminWatchlistsReceived")
|
|
.HasForeignKey("PlayerUserId")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.HasConstraintName("FK_admin_watchlists_player_player_user_id");
|
|
|
|
b.HasOne("Content.Server.Database.Round", "Round")
|
|
.WithMany()
|
|
.HasForeignKey("RoundId")
|
|
.HasConstraintName("FK_admin_watchlists_round_round_id");
|
|
|
|
b.Navigation("CreatedBy");
|
|
|
|
b.Navigation("DeletedBy");
|
|
|
|
b.Navigation("LastEditedBy");
|
|
|
|
b.Navigation("Player");
|
|
|
|
b.Navigation("Round");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Antag", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Profile", "Profile")
|
|
.WithMany("Antags")
|
|
.HasForeignKey("ProfileId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_antag_profile_profile_id");
|
|
|
|
b.Navigation("Profile");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ConnectionLog", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Server", "Server")
|
|
.WithMany("ConnectionLogs")
|
|
.HasForeignKey("ServerId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_connection_log_server_server_id");
|
|
|
|
b.Navigation("Server");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Job", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Profile", "Profile")
|
|
.WithMany("Jobs")
|
|
.HasForeignKey("ProfileId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_job_profile_profile_id");
|
|
|
|
b.Navigation("Profile");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Profile", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Preference", "Preference")
|
|
.WithMany("Profiles")
|
|
.HasForeignKey("PreferenceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_profile_preference_preference_id");
|
|
|
|
b.Navigation("Preference");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Round", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Server", "Server")
|
|
.WithMany("Rounds")
|
|
.HasForeignKey("ServerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_round_server_server_id");
|
|
|
|
b.Navigation("Server");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerBan", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Player", "CreatedBy")
|
|
.WithMany("AdminServerBansCreated")
|
|
.HasForeignKey("BanningAdmin")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_server_ban_player_banning_admin");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "LastEditedBy")
|
|
.WithMany("AdminServerBansLastEdited")
|
|
.HasForeignKey("LastEditedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_server_ban_player_last_edited_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Round", "Round")
|
|
.WithMany()
|
|
.HasForeignKey("RoundId")
|
|
.HasConstraintName("FK_server_ban_round_round_id");
|
|
|
|
b.Navigation("CreatedBy");
|
|
|
|
b.Navigation("LastEditedBy");
|
|
|
|
b.Navigation("Round");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerBanHit", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.ServerBan", "Ban")
|
|
.WithMany("BanHits")
|
|
.HasForeignKey("BanId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_server_ban_hit_server_ban_ban_id");
|
|
|
|
b.HasOne("Content.Server.Database.ConnectionLog", "Connection")
|
|
.WithMany("BanHits")
|
|
.HasForeignKey("ConnectionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_server_ban_hit_connection_log_connection_id");
|
|
|
|
b.Navigation("Ban");
|
|
|
|
b.Navigation("Connection");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerRoleBan", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Player", "CreatedBy")
|
|
.WithMany("AdminServerRoleBansCreated")
|
|
.HasForeignKey("BanningAdmin")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_server_role_ban_player_banning_admin");
|
|
|
|
b.HasOne("Content.Server.Database.Player", "LastEditedBy")
|
|
.WithMany("AdminServerRoleBansLastEdited")
|
|
.HasForeignKey("LastEditedById")
|
|
.HasPrincipalKey("UserId")
|
|
.OnDelete(DeleteBehavior.SetNull)
|
|
.HasConstraintName("FK_server_role_ban_player_last_edited_by_id");
|
|
|
|
b.HasOne("Content.Server.Database.Round", "Round")
|
|
.WithMany()
|
|
.HasForeignKey("RoundId")
|
|
.HasConstraintName("FK_server_role_ban_round_round_id");
|
|
|
|
b.Navigation("CreatedBy");
|
|
|
|
b.Navigation("LastEditedBy");
|
|
|
|
b.Navigation("Round");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerRoleUnban", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.ServerRoleBan", "Ban")
|
|
.WithOne("Unban")
|
|
.HasForeignKey("Content.Server.Database.ServerRoleUnban", "BanId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_server_role_unban_server_role_ban_ban_id");
|
|
|
|
b.Navigation("Ban");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerUnban", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.ServerBan", "Ban")
|
|
.WithOne("Unban")
|
|
.HasForeignKey("Content.Server.Database.ServerUnban", "BanId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_server_unban_server_ban_ban_id");
|
|
|
|
b.Navigation("Ban");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Trait", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Profile", "Profile")
|
|
.WithMany("Traits")
|
|
.HasForeignKey("ProfileId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_trait_profile_profile_id");
|
|
|
|
b.Navigation("Profile");
|
|
});
|
|
|
|
modelBuilder.Entity("PlayerRound", b =>
|
|
{
|
|
b.HasOne("Content.Server.Database.Player", null)
|
|
.WithMany()
|
|
.HasForeignKey("PlayersId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_player_round_player_players_id");
|
|
|
|
b.HasOne("Content.Server.Database.Round", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoundsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_player_round_round_rounds_id");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Admin", b =>
|
|
{
|
|
b.Navigation("Flags");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminLog", b =>
|
|
{
|
|
b.Navigation("Players");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.AdminRank", b =>
|
|
{
|
|
b.Navigation("Admins");
|
|
|
|
b.Navigation("Flags");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ConnectionLog", b =>
|
|
{
|
|
b.Navigation("BanHits");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Player", b =>
|
|
{
|
|
b.Navigation("AdminLogs");
|
|
|
|
b.Navigation("AdminMessagesCreated");
|
|
|
|
b.Navigation("AdminMessagesDeleted");
|
|
|
|
b.Navigation("AdminMessagesLastEdited");
|
|
|
|
b.Navigation("AdminMessagesReceived");
|
|
|
|
b.Navigation("AdminNotesCreated");
|
|
|
|
b.Navigation("AdminNotesDeleted");
|
|
|
|
b.Navigation("AdminNotesLastEdited");
|
|
|
|
b.Navigation("AdminNotesReceived");
|
|
|
|
b.Navigation("AdminServerBansCreated");
|
|
|
|
b.Navigation("AdminServerBansLastEdited");
|
|
|
|
b.Navigation("AdminServerRoleBansCreated");
|
|
|
|
b.Navigation("AdminServerRoleBansLastEdited");
|
|
|
|
b.Navigation("AdminWatchlistsCreated");
|
|
|
|
b.Navigation("AdminWatchlistsDeleted");
|
|
|
|
b.Navigation("AdminWatchlistsLastEdited");
|
|
|
|
b.Navigation("AdminWatchlistsReceived");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Preference", b =>
|
|
{
|
|
b.Navigation("Profiles");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Profile", b =>
|
|
{
|
|
b.Navigation("Antags");
|
|
|
|
b.Navigation("Jobs");
|
|
|
|
b.Navigation("Traits");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Round", b =>
|
|
{
|
|
b.Navigation("AdminLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.Server", b =>
|
|
{
|
|
b.Navigation("ConnectionLogs");
|
|
|
|
b.Navigation("Rounds");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerBan", b =>
|
|
{
|
|
b.Navigation("BanHits");
|
|
|
|
b.Navigation("Unban");
|
|
});
|
|
|
|
modelBuilder.Entity("Content.Server.Database.ServerRoleBan", b =>
|
|
{
|
|
b.Navigation("Unban");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|