Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Redesign database infrastructure #912

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hemberger
Copy link
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