LogBook uses a MySQL database to persist all operational data, including users, jobs, XP, ranks, and logs. This page outlines the core table structure and their relationships.
vtc_users
– list of users with XP, role, SteamID, VTC tagvtc_jobs
– submitted deliveries (manual or via API)vtc_xp
– XP thresholds and rank namesxplog
– log of manual or bonus XP changes (reason, who, when)vtc_users
steamid
– unique user identifierusername
– display nametotal_xp
– cumulative XProle
– driver / admin / dispatcherjoined_at
– timestamp of registrationvtc_jobs
id
– auto-increment job IDsteamid
– user who submitted the jobcargo
, source_city
, destination_city
distance
, delivery_time
xp_earned
vtc_xp
rank
– name of the rank (e.g. "Local Driver")xp
– XP required to reach this rankxplog
id
, steamid
reason
, xp
, timestamp
Tables can be prefixed per VTC (e.g. abc_vtc_jobs
), allowing multi-VTC support within the same system instance.
steamid
and delivery_time
for performance