Skip to content

๐Ÿงญ Entity Relationship Diagrams

Last updated: 2025-10-09 (Europe/Paris)

RawDigs uses modular contexts with clearly defined data boundaries. This index gathers the available entity relationship diagrams (ERDs) so you can quickly understand how tables align across contexts and how features compose.


๐Ÿ“š Current Diagrams

Diagram Context What it covers
Accounts Models Accounts Users, organizations, memberships, invitations, and their relationships.
Accounts Entity Map Accounts Cross-context relationships between users, organizations, roles, and invitations.
Creators Models Creators Artists, team members, profiles, invitations, and aliases.
Creators Entity Map Creators High-level relationships between artists, members, organizations, and catalog releases.
Roles & Permissions Schema Map Auth Spatie roles/permissions tables and how they connect to Accountsโ€™ team-scoped memberships.
Auth Entity Map Auth How Spatie roles and permissions interact with Accounts memberships and Creators overrides.

More diagrams will appear here as additional contexts crystallize (e.g., Catalog, Commerce, Media).


๐Ÿ” How to use

  • When scoping a feature, start with the diagram for the owning context to see available entities and relationships.
  • Cross-context flows (e.g., Accounts โ†” Auth) reference each other, so flipping between diagrams clarifies ownership boundaries.
  • Pair diagrams with the corresponding context overview pages for narrative detail and integration notes.

  • docs/rawdigs-contexts.md โ€” High-level overview of all contexts.
  • docs/contexts/accounts/index.md โ€” Accounts context purpose, flows, integrations.
  • docs/contexts/auth/index.md โ€” Auth guard overview, flows, and access model.