add db config

This commit is contained in:
Ean Milligan 2025-08-18 01:55:39 -04:00
parent b1fb6794e8
commit 21ef65bdd5
3 changed files with 2298 additions and 0 deletions

24
db-config/README.md Executable file
View File

@ -0,0 +1,24 @@
# dutylog.app DB Schema
This repository will house any initialization scripts, constant data, design notes, and really anything else related to the database.
## Design Notes
All activities will be stored in our own database for simplicity and so that data can be formatted in a usable setup. Activity names will not be stored in the DB and instead will live in a `[type].[lang].json` file in their game translated forms.
The current plan is to host this database on Cloudflare D1, which is based on SQLite.
## Translations
Current translation file list:
- `language.[lang].json`
- `servers.[lang].json`
- `expansions.[lang].json`
- `instance_types.[lang].json`
- `instances.[lang].json`
- `jobs.[lang].json`
These files will be generated by the DB initialization script and will need to be moved to the `www` repo for build/deployment.
## Schema
The schema was designed using [Dia](http://dia-installer.de/).
![schema.png](https://git.milligan.dev/xivdev/dutylog/raw/branch/main/db-config/schema.png)

2274
db-config/schema.dia Normal file

File diff suppressed because it is too large Load Diff

BIN
db-config/schema.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB