Skip to content

[M0-2] Feat: Database schema skeleton#256

Draft
ajstrongdev wants to merge 2 commits into
v3from
feat/schema-skeleton
Draft

[M0-2] Feat: Database schema skeleton#256
ajstrongdev wants to merge 2 commits into
v3from
feat/schema-skeleton

Conversation

@ajstrongdev

@ajstrongdev ajstrongdev commented Jun 7, 2026

Copy link
Copy Markdown
Owner

This pull request significantly expands and restructures the database schema by introducing new tables and defining their relationships. The changes lay the groundwork for handling accounts, access tokens, politicians, nations, and statistics, replacing the previous single todos table with a more comprehensive data model.

Database schema expansion and restructuring:

  • Added new tables: accounts, accessTokens, politicians, nations, and stats, each with relevant fields and constraints to support user accounts, authentication tokens, political roles, nations, and per-nation statistics.
  • Removed the old todos table, reflecting a shift away from a simple to-do model to a more complex domain.

Relations and data integrity:

  • Defined relations between tables using the relations helper, including:
    • Accounts to their politicians and access tokens.
    • Access tokens to their creator and redeemer accounts.
    • Nations to their statistics and politicians.
    • Politicians to their associated account and nation.
    • Stats to their nation.

@ajstrongdev ajstrongdev changed the base branch from develop to v3 June 7, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant