Database setup
Automatic tables
The code creates nl_identities, nl_identity_numbers, ep_identity_documents and ep_identity_insurance. It can upgrade applicable ESX users and user_licenses columns. Back up the database and grant the resource database account the necessary CREATE/ALTER privileges.
ESX only
Use install/esx_licenses.sql for the supplied driving, boating and flight license types when the existing ESX licenses and user_licenses tables are present. It inserts missing types without overwriting existing entries and adds issued_at where absent. Use install/insurance.sql for the ESX users.health_insurance and health_insurance_next_charge columns and insurance table. Do not import ESX-specific files into unrelated schemas.
License integration
Config.LicenseIntegration.source defaults to ep_driving; the ep_driving_licenses table is created by EP-DrivingSchool. For ESX framework integration, use source = 'framework' and the mapped user_licenses types. For a different license provider, implement the editable server hooks. Both resources must use the same persistent character identifier, especially citizenid on QB/Qbox.
Upgrades
Never drop tables to fix a missing column. Back up and inspect the actual schema first. Keep identity records, document metadata and qualifications when upgrading. The reset command removes the registration row, not all document and qualification records.