Database

Complete database structure for hsJobQuest V2.


Overview

hsJobQuest V2 uses MySQL (via oxmysql) with the following tables:

Table
Purpose

hsjobquest_players

Core player data

hsjobquest_skills

Player skill levels

hsjobquest_factions

Faction reputation

hsjobquest_achievements

Unlocked achievements

hsjobquest_statistics

Detailed player stats

hsjobquest_heat

Illegal runs heat tracking

hsjobquest_mission_history

Completed missions log

hsjobquest_coop_groups

Co-op group data

hsjobquest_coop_members

Group membership

hsjobquest_economy

Dynamic economy state

hsjobquest_transactions

ATM transaction log


hsjobquest_players

Core player information and progression.

Column
Type
Description

citizenid

VARCHAR(50)

Player identifier (PK)

name

VARCHAR(100)

Player name

xp

INT

Total career XP

rank

INT

Current rank (1-10)

money

INT

ATM balance

prestige

INT

Prestige level (0-5)

skill_points

INT

Available skill points

total_deliveries

INT

Lifetime deliveries

perfect_deliveries

INT

Zero damage deliveries

total_earnings

BIGINT

Lifetime earnings

total_distance

FLOAT

Total km traveled


hsjobquest_skills

Player skill levels.

Column
Type
Description

citizenid

VARCHAR(50)

Player identifier

category

VARCHAR(50)

driving, efficiency, combat, special

skill_name

VARCHAR(50)

Skill identifier

level

INT

Current level (0 to max)


hsjobquest_factions

Faction reputation tracking.

Column
Type
Description

citizenid

VARCHAR(50)

Player identifier

faction_id

VARCHAR(50)

Faction identifier

reputation

INT

Rep points (0-10000+)

missions_completed

INT

Jobs done for faction


hsjobquest_achievements

Unlocked achievements.

Column
Type
Description

citizenid

VARCHAR(50)

Player identifier

achievement_id

VARCHAR(100)

Achievement identifier

unlocked_at

TIMESTAMP

When achievement was unlocked

claimed

TINYINT(1)

Whether reward was claimed (0/1)


hsjobquest_statistics

Detailed player statistics for achievements.


hsjobquest_heat

Illegal runs heat tracking.


hsjobquest_mission_history

Completed mission log.


hsjobquest_coop_groups

Co-op group data.


hsjobquest_coop_members

Group membership.


hsjobquest_economy

Dynamic economy state.


hsjobquest_transactions

ATM transaction history.


Indexes

The schema includes indexes for:

  • Player lookups by citizenid

  • Mission history queries

  • Transaction history queries

  • Leaderboard rankings


Foreign Keys

All tables reference hsjobquest_players with ON DELETE CASCADE, meaning:

  • Deleting a player removes all their data

  • Data integrity is maintained automatically

Last updated