Skip to content

[WIP] Redesign database infrastructure#912

Draft
hemberger wants to merge 1 commit into
smrealms:mainfrom
hemberger:playerid
Draft

[WIP] Redesign database infrastructure#912
hemberger wants to merge 1 commit into
smrealms:mainfrom
hemberger:playerid

Conversation

@hemberger
Copy link
Copy Markdown
Member

All tables that have an (account_id, game_id) primary key will be
changed to (player_id, game_id). Pretty much every instance of an
account ID is replaced with a player ID in all game-scoped code.

This is the first step in a major redesign to associate tables to the
most closely-related table, rather than having everything depend on
the high-level account table.

Some features that this change will help facilitate:

  • Multiple players per account per game (to replace "multi accounts").
  • NPCs not needing an associated account.
  • Free-standing ships/weapons.

All tables that have an `(account_id, game_id)` primary key will be
changed to `(player_id, game_id)`. Pretty much every instance of an
account ID is replaced with a player ID in all game-scoped code.

This is the first step in a major redesign to associate tables to the
most closely-related table, rather than having everything depend on
the high-level `account` table.

Some features that this change will help facilitate:
* Multiple players per account per game (to replace "multi accounts").
* NPCs not needing an associated account.
* Free-standing ships/weapons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant