1.4 KiB
1.4 KiB
Database Schema Layout (game)
This project uses multiple PostgreSQL schemas to keep domain data separated and maintainable.
Search Path
Configured on database level:
ALTER DATABASE game SET search_path = world, economy, progression, gameplay, resources, system, public;
So unqualified table names still resolve in this order.
Schemas
world
Map/world topology and placements.
server_mapsserver_map_flagsmap_portalsmap_npcsmap_monstersmap_teleporters
economy
Shops, drops, and loot containers.
shopsshop_itemsshop_skillsitem_boxesitem_box_itemsdrops
progression
Questing and recipe progression data.
recipesrecipe_itemsquestsquest_objectivesquest_prizesquest_npcstutorials
gameplay
Combat/gameplay mechanics and event configs.
skillsskill_bcardsskill_combosminigame_configminigame_scores_holdersglobal_minigame_configgameevent_instant_battle_configs
resources
Raw synced file resources (DB-first support).
resource_files
system
System-level metadata.
__EFMigrationsHistory
Notes
- Keep new feature tables in the matching domain schema, not in
public. - If you add EF migrations, ensure schema-qualified table mapping is explicit.
- DB-first runtime loaders depend on these tables being present and populated.