MythosMUD Database Placement
Allowed Paths Only
| Environment | Player data | NPC data |
|---|---|---|
| Production | /data/players/ | /data/npcs/ |
| Tests | server/tests/data/players/ | server/tests/data/npcs/ |
Never create database files outside these paths.
Forbidden
- •Never create files in
server/server/tests/data/players/,server/server/tests/data/npcs/, or any other location. - •Never create
*.dbfiles without explicit permission. The project uses PostgreSQL, not SQLite. - •Never treat
player_idas a string; it is a UUID type.
Data Types
- •player_id: UUID. Use the appropriate UUID type in PostgreSQL and in application code (e.g. Python
uuid.UUID), not string.
When Adding or Moving Persistence
- •Confirm which environment (production vs test).
- •Use only the paths in the table above.
- •Use PostgreSQL for persistence; do not introduce SQLite or new
*.dbfiles unless explicitly approved. - •If you see database files in wrong locations, delete them and inform the user.
Reference
- •Full rules: CLAUDE.md "CRITICAL DATABASE PLACEMENT RULES" and "Database Type Rules"
- •Schema and DB docs: db/README.md