DND Docs

Resourcesdnd_jobmanagementInstallation

Database Setup

Last updated on

Tables are created automatically (CREATE TABLE IF NOT EXISTS) the first time the resource starts — installation/db.sql's core tables plus escrow/server/migrations.lua's feature tables. Nothing to run manually; just start the resource once.

Manual

If you'd rather import it yourself, run installation/db.sql, then let the resource create the rest on first boot (or extract the matching CREATE TABLE statements from escrow/server/migrations.lua).

Core tables (installation/db.sql)

TablePurpose
dnd_jm_configPer-job settings + document templates (JSON)
dnd_jm_requestsGeneric identity/document request records — kind/type + a JSON payload cover every request type
dnd_jm_holdersIssued card-holder items linked to a citizen (JSON payload)
dnd_jm_starterpack_claimsTracks one-time starterpack grants per character

Feature tables (escrow/server/migrations.lua)

TablePurpose
dnd_jm_attendance_logsClock in/out history
dnd_jm_officer_salaryPer-job salary configuration
dnd_jm_bonus_configHRD bonus rules
dnd_jm_weekly_trackingWeekly hours/attendance tracking
dnd_jm_starterpack_configStarterpack vehicle/SKWB grant configuration
dnd_jm_job_salary_gradesPer-grade salary table
dnd_jm_payroll_configPayroll run configuration
dnd_jm_payroll_historyPast payroll runs
dnd_jm_recruitment_configHiring/application form configuration
dnd_jm_job_applicationsSubmitted job applications
dnd_jm_medical_recordsEMS medical record entries
dnd_jm_crime_recordsPolice criminal record entries
dnd_jm_audit_logsAdmin-panel audit trail

Config vs database

Most of the day-to-day content (job app access, world interaction points, document type definitions) lives in shared/config/*.lua and is read fresh on every boot — the database only holds runtime/player data: requests, issued documents, attendance, salary, records, and admin audit history.

On this page