Welcome to the D&D Character and User Management Database, a structured and extensible system for managing players, characters, campaigns, classes, races, and magical equipment in a tabletop RPG setting.
This schema supports key RPG concepts such as multi-classing, subraces, magic systems, and character abilities, and is designed to be used by both players (jucatori) and organizers (organizatori) of campaigns.
The database is designed to store, organize, and enforce rules for a D&D-like game system. It ensures consistency, validation, and flexibility for:
- User registration and role management
- Campaign creation and session scheduling
- Character creation and progression
- Races (
neam), subraces (subneam), classes, and archetypes (arhetip) - Magic items, weapons, and spells
- Ability scores and derived bonuses
Here is a high-level overview of the key components:
| Entity | Description |
|---|---|
utilizator |
Represents a user of the system (player or organizer) |
campanie |
A game campaign managed by an organizer |
sedinta |
Individual sessions in a campaign |
personaj |
Player characters with races, abilities, and personalities |
clasa, arhetip |
RPG classes and their special archetypes |
neam, subneam |
Character races and subraces |
atribut |
Generic attributes (can be spells or equipment) |
echipament |
Equipment items extending attributes |
vraja |
Spells extending attributes |
arbore_de_abilitati |
Ability score tree for each character |
bonus_abilitati |
Bonus derived from ability scores |
componenta |
Spell components |
... and mapping tables such as item_clasa, item_arhetip, etc. |
Used in:
utilizatorβ differentiatesjucatorandorganizatoratributβ superclass forechipamentandvraja
Used for:
- Subtypes such as
echipamentandvrajato extendatribut - Allows spells and equipment to share metadata
Examples:
personaj_clasa: characters can multiclassitem_arhetip,item_clasa, etc.: items linked to different entities
Simplified version:
utilizator
β
βββ campanie
β βββ sedinta
β
βββ personaj
β βββ personaj_clasa
β βββ personaj_campanie
β βββ arbore_de_abilitati
β
βββ clasa βββ¬ββ arhetip
β βββ item_clasa
β
βββ neam ββββ¬ββ subneam
β βββ item_neam
β
βββ atribut βββ¬ββ echipament
β βββ vraja ββ componenta_vraja
β βββ linked to neam, clasa, arhetip, subneam
β
βββ bonus_abilitati
ERD:
