Data export: format and tables

Version 1.0 · Date 6 November 2026 · Effective from 7 November 2026

This is a translation. The Slovenian page is binding: Izvoz podatkov.

A customer’s administrator can download the full company data export at any time (Settings → Company → Full company data export). This page describes the contents and format of the export and every table and column it contains. It is the online register of data structures and data formats under Article 26 of the Data Act (Regulation (EU) 2023/2854).

The description of the tables and columns is generated from the database schema the export reads, so it always matches the version of the service in use. Every export carries the same description in dictionary.json. The other Data Act information (jurisdiction of the infrastructure and safeguards against access by foreign authorities) is on the Sub-processors page.

Contents of the archive

The export is one ZIP archive named prevoxio-export-<company>-<date>-<time>.zip (time in UTC). Archives larger than 4 GB use the ZIP64 extension.

Contents of the archive
Path in the archiveContentsFormat
database/<table>.ndjsonthe records of one database table; one file for every table in the section Tables and columnsone JSON object per line, UTF-8; keys are the column names in database order, records are ordered by primary key
files/private/uploaded files: scans of vehicle and driver documents, CMRs and other invoice attachments, order documents, work order attachments, signature and stamp imagesoriginal format as uploaded (e.g. PDF, JPEG, PNG)
files/public/the company logo and older signature imagesoriginal format
manifest.jsonexport time, database schema version (latest migration), record count per table, size and SHA-256 checksum of every data file and every uploaded file, the tables not in the export and missing filesJSON
dictionary.jsonthe description of the tables and columns on this page, in Slovenian and EnglishJSON
README.txta short description of the format in Slovenian and Englishtext, UTF-8

The file of a storage_key or scan_storage_key column is in the archive under files/private/ at the key without its leading tenants/<company>/ part. manifest.json names the table and record of every file and lists the files that could not be found at export time.

Standards used: ZIP (PKWARE APPNOTE), JSON (RFC 8259) with one record per line (JSON Lines), UTF-8 encoding, SHA-256 (FIPS 180-4), dates and times under ISO 8601, currencies under ISO 4217 and countries under ISO 3166-1. Issued e-invoices are stored as eSLOG 2.0 or UBL 2.1 (Peppol BIS Billing 3.0), issued quotes as PDF.

How values are written

Values are written exactly as stored in the database. The Type column of the table descriptions gives the PostgreSQL type; in JSON the values look like this:

Values by type
TypeValue in JSONExample
integerwhole number42
numeric(p,s)number with all stored decimals (p digits, s of them after the decimal point); read amounts as decimal numbers, not as floating-point numbers1234.50
text, varchar(n), char(n), uuidstring; n is the maximum length, a char(n) value is padded with spaces to n characters"Ljubljana"
booleantrue or falsetrue
datestring with the date"2026-11-06"
timestamp(3)string with date and time in UTC without a time zone suffix, with up to three decimals of seconds"2026-11-06T14:05:09.123"
enumstring, one of the values listed for the column"confirmed"
jsonbnested JSON value (object or array){"SI": 12.4}
byteastring with the bytes as hex, starting with \x; in the JSON file the backslash is doubled"\\x25504446"
text[], enum[]array of strings; an empty list is []["admin","accountant"]

An empty value is null. The Can be empty column of the table descriptions says where that is possible.

What the export leaves out

The export contains every table of the customer’s database except these:

Tables not in the export
TableReason
_prisma_migrationsschema migration bookkeeping (the version is in the manifest)
rate_limit_bucketsshort-lived abuse counters keyed by IP/user
order_route_geometriesroute display lines from the routing provider (third-party content, kept at most 30 days; recomputable from the order stops)
route_cache_entriescached routing provider responses (third-party content, kept at most 30 days)
routing_usage_monthsrouting provider usage counters for cost control

The values of these columns are not exported because they are security secrets; the other columns of these tables are exported:

Columns not in the export
ColumnContents
users.passwordpassword hash
users.totp_secrettwo-factor secret
users.recovery_codesrecovery codes
tenant_integrations.encrypted_credentialencrypted integration credential (the customer holds its FleetCore token itself)
vehicle_costs.card_hashprotected fingerprint of the card number (the last four characters are exported)
vehicle_costs.device_hashprotected fingerprint of the toll-box number (the last four characters are exported)
cost_card_mappings.identifier_hashprotected fingerprint of the card or toll-box number (the last four characters are exported)

Invoice PDFs and CMRs that the service generates from the data are not stored as files; the export contains all the data they are generated from.

Tables and columns

The export contains 60 tables with 1000 columns in total. Each column lists its type (see How values are written), whether the value can be empty and its meaning. A primary key is marked next to the type, and a reference names the table and column the value points to.

Tables in the export
TableContents
accounting_export_batchesAccounting export batches: each finalised export of issued invoices (e.g. for Vasco) with its totals
accounting_export_itemsAccounting export items: a snapshot of each invoice as it was exported in a batch
audit_logsAudit trail: who created, changed, deleted or exported which record and when
company_settingsCompany settings (one record): company name, address, tax and bank details, logo, way of working, default truck for routing and two-factor rules
cost_card_mappingsFuel cards and toll boxes linked to a vehicle, for costs that carry no plate
cost_import_batchesImports of cost files (Eurowag, DarsGo): file name and hash, period and row counts; the files themselves are not kept
countriesCountry list
driver_documentsDriver documents (e.g. driving licence, driver card, medical certificate) with expiry dates and scans
driver_salary_configsDriver pay settings: pay basis and amounts, valid from a given date
driversDrivers
einvoice_documentsIssued e-invoices (eSLOG 2.0 or UBL 2.1), stored exactly as issued
external_batchesExternal batches: groups of orders that a partner lists under one number of its own (e.g. a collective delivery note)
external_rate_snapshotsStored external figures used in cost estimates: fuel prices and exchange rates with their source and time of validity
external_settlementsPartner settlements (e.g. a statement or self-billing credit note the partner sends) that group external batches and that an invoice can refer to
fleetcore_driver_mappingsLinks between Prevoxio drivers and drivers in the CVS (FleetCore) telematics: only the driver key in CVS and how the link was made, no names or tachograph card numbers
fleetcore_vehicle_daily_metricsDaily vehicle figures from FleetCore telematics: distance, fuel, idling and costs
fleetcore_vehicle_mappingsLinks between Prevoxio vehicles and FleetCore telematics vehicles, with the last known position
fleetcore_vehicle_tripsVehicle trips from FleetCore telematics (distance, duration, fuel, start and end), the basis for automatic quote estimates; no driver data
invoice_documentsFiles attached to invoices (e.g. signed CMRs)
invoice_linesInvoice lines
invoice_number_sequencesNumbering state of invoices, credit notes and debit notes per year: the highest sequence number already handed out, which never goes down
invoice_number_startsFirst number of invoices, credit notes or debit notes in a year, continuing the numbering of the previous software
invoice_ordersLinks between invoices and orders: which orders an invoice bills
invoicesInvoices, credit notes and debit notes
order_documentsFiles attached to orders (e.g. the customer’s order)
order_number_sequencesOrder numbering state per year
order_route_plansRoute plans frozen when an order was confirmed: planned km (empty, loaded, per country), driving time, tolls with VAT, planned cost and the inputs used
order_stopsAdditional stops of orders (loading or unloading places) in sequence
order_templatesOrder templates: saved form contents for quickly entering similar orders
ordersTransport orders: customer, route, cargo, vehicle, driver, price, subcarrier, CMR details and status
partner_bank_accountsPartners’ bank accounts
partner_contactsPartners’ contact persons
partnersPartners: customers, carriers (subcarriers), suppliers and employees
payment_termsPayment terms (days until due)
pricing_locationsPricing locations: places that pricing rates apply to
pricing_ratesPricing rates (price list): price per billing unit for a pricing location and validity period
quote_estimate_componentsItems of a quote cost estimate (fuel, driver, tolls …) with quantity, price and data source
quote_estimate_mutation_receiptsReceipts of saved cost estimates, so that a repeated request is not saved twice
quote_estimatesCost estimates of quotes: expected and conservative cost, suggested price, margin, distances and the inputs and sources of the calculation
quote_estimator_settingsCost estimator settings (one record): default consumptions, prices and costs per kilometre, hour and day
quote_mutation_receiptsReceipts of created or duplicated quotes, so that a repeated request does not create a duplicate
quote_number_sequencesQuote numbering state per year
quote_publicationsIssued quotes: the PDF and commercial data, frozen at first issue; they cannot be changed
quote_stopsStops of quotes in sequence
quotesQuotes to customers: route, cargo, price, cost estimate and status
saved_location_aliasesAlternative spellings of saved location names (aliases) for search
saved_locationsSaved locations (frequent loading and unloading places) with address and coordinates
tenant_integrationsIntegration settings (FleetCore), without the encrypted credential
usersApp users, without passwords and two-factor secrets
vasco_export_settingsThe company’s account numbers for exporting issued invoices to the Vasco bookkeeping program (receivables, revenue, VAT)
vehicle_brandsVehicle brand list
vehicle_cost_profilesVehicle cost profiles for quote cost estimates
vehicle_costsActual vehicle costs from every source (Eurowag cards, DarsGo, CVS, accounting, manual entry): fuel, AdBlue, tolls, vignettes, parking, service
vehicle_damagesVehicle damages and their repair
vehicle_documentsVehicle documents (insurance, registration, ADR, technical inspection …) with expiry dates and scans
vehicle_typesVehicle type list
vehiclesVehicles: tractor units, trucks and trailers
work_order_attachmentsWork order attachments (photos before and after the repair, documents)
work_order_notesNotes on work orders (the conversation between office and mechanic)
work_ordersWorkshop work orders for vehicle repairs and maintenance, including at an external service

accounting_export_batches

Accounting export batches: each finalised export of issued invoices (e.g. for Vasco) with its totals. File in the archive: database/accounting_export_batches.ndjson.

Columns of accounting_export_batches
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
batch_numbervarchar(50)noBatch number
statusenum: finalized, voidednoBatch status: finalised or voided
format_versionvarchar(50)noVersion of the export format
invoice_countintegernoNumber of invoices in the batch
subtotalnumeric(12,2)noTotal without VAT
tax_amountnumeric(12,2)noTotal VAT
total_amountnumeric(12,2)noTotal including VAT
currencyvarchar(3)noCurrency (ISO 4217 code, e.g. EUR)
finalized_attimestamp(3)noWhen the batch was finalised
finalized_byvarchar(255)yesUser who finalised the batch (e-mail)
voided_attimestamp(3)yesWhen the batch was voided
voided_byvarchar(255)yesUser who voided the batch (e-mail)
void_reasontextyesReason for voiding
created_attimestamp(3)noWhen the record was created
created_byvarchar(255)yesUser who created the record (e-mail)

accounting_export_items

Accounting export items: a snapshot of each invoice as it was exported in a batch. File in the archive: database/accounting_export_items.ndjson.

Columns of accounting_export_items
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
batch_idinteger; references accounting_export_batches.idnoExport batch
invoice_idinteger; references invoices.idnoExported invoice
row_orderintegernoPosition of the invoice in the export
invoice_numbervarchar(50)noInvoice number
invoice_kindenum: invoice, credit_note, debit_notenoDocument type: invoice, credit note or debit note
invoice_statusenum: draft, sent, paid, partially_paid, overdue, cancellednoInvoice status at export
invoice_datedatenoInvoice date
service_datedatenoDate of service
due_datedateyesDue date
customer_namevarchar(255)noCustomer at export
customer_tax_numbervarchar(30)yesCustomer’s tax number or VAT ID at export
customer_legacy_idintegeryesCustomer ID in the previous software
order_numberstextyesOrder numbers on the invoice
legacy_transport_numbertextyesTransport numbers from the previous software
origin_locationtextyesLoading place
pickup_datedateyesLoading date
destination_locationtextyesUnloading place
delivery_datedateyesDelivery date
sender_namevarchar(255)yesSender
recipient_namevarchar(255)yesRecipient
subtotalnumeric(12,2)noAmount without VAT
tax_amountnumeric(12,2)noVAT amount
total_amountnumeric(12,2)noAmount including VAT
currencyvarchar(3)noCurrency (ISO 4217 code, e.g. EUR)
transfer_flagintegernoFlag for the transfer to the accounting software (1 = transfer)
grouped_transfer_flagintegernoFlag for a grouped transfer (1 = yes)
do_not_transfer_flagintegernoFlag that the invoice is not transferred (1 = do not transfer)
snapshot_updated_attimestamp(3)noWhen the invoice was last changed before the export
hours_since_updateintegernoHours between the last change of the invoice and the export
created_attimestamp(3)noWhen the record was created

audit_logs

Audit trail: who created, changed, deleted or exported which record and when. File in the archive: database/audit_logs.ndjson.

Columns of audit_logs
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
table_namevarchar(100)noTable of the changed record
record_idintegernoID of the changed record
actionvarchar(20)noAction, e.g. create, update, delete or export
changesjsonbyesChanged fields or parameters of the action (JSON)
user_idvarchar(255)yesUser who performed the action (ID or e-mail)
created_attimestamp(3)noWhen the record was created

company_settings

Company settings (one record): company name, address, tax and bank details, logo, way of working, default truck for routing and two-factor rules. File in the archive: database/company_settings.ndjson.

Columns of company_settings
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier (always 1)
namevarchar(255)noCompany name
addresstextyesAddress (street and number)
cityvarchar(100)yesCity
postal_codevarchar(20)yesPostal code
countryvarchar(100)yesCountry (text)
country_codevarchar(2)yesCountry code (ISO 3166-1 alpha-2) for e-invoices
tax_numbervarchar(30)yesTax number or VAT ID
registration_numbervarchar(30)yesCompany registration number
phonevarchar(30)yesThe company’s phone number, printed on invoices
emailvarchar(255)yesThe company’s e-mail address, printed on invoices
bank_namevarchar(100)yesBank
ibanvarchar(50)yesIBAN
swiftvarchar(20)yesSWIFT/BIC code
logo_urltextyesPath of the logo; in the archive the file is under files/public/
brand_colorvarchar(7)yesCompany colour as a hex value, e.g. #2563eb
workflow_modeenum: advanced, simplenoHow the app is used: advanced or simple
default_truck_gross_weight_kgintegeryesDefault gross weight of the truck for routing (kg)
default_truck_axle_countintegeryesDefault number of axles for routing
default_truck_trailer_countintegeryesDefault number of trailers for routing
default_truck_height_mnumeric(5,2)yesDefault truck height in metres
default_truck_width_mnumeric(5,2)yesDefault truck width in metres
default_truck_length_mnumeric(5,2)yesDefault truck length in metres
default_truck_euro_standardvarchar(10)yesDefault EURO emission class
default_truck_co2_classintegeryesDefault CO2 emission class
default_truck_unit_typevarchar(20)yesDefault truck type for routing: tractor, rigid truck or van
two_factor_required_rolesenum[]: admin, dispatcher, accountant, driver, mechanicempty listRoles that must use two-factor authentication
updated_attimestamp(3)noWhen the record was last changed

cost_card_mappings

Fuel cards and toll boxes linked to a vehicle, for costs that carry no plate. File in the archive: database/cost_card_mappings.ndjson. Without the columns holding security secrets: identifier_hash.

Columns of cost_card_mappings
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
kindenum: card, toll_devicenoKind: fuel card (card) or toll box (toll_device)
identifier_last4varchar(4)noLast four characters of the card or toll-box number
vehicle_idinteger; references vehicles.idnoVehicle
labelvarchar(100)yesLabel
created_by_idintegeryesUser who created the link
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

cost_import_batches

Imports of cost files (Eurowag, DarsGo): file name and hash, period and row counts; the files themselves are not kept. File in the archive: database/cost_import_batches.ndjson.

Columns of cost_import_batches
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
sourceenum: eurowag_file, darsgo, cvs, accounting, manualnoSource: eurowag_file or darsgo
formatvarchar(40)noRecognised file format
file_namevarchar(255)noName of the imported file
file_sha256varchar(64)noSHA-256 hash of the file
plan_fingerprintvarchar(64)noFingerprint of the reviewed preview that was imported
row_countintegernoNumber of rows in the file
created_countintegernoNumber of new cost rows
upgraded_countintegernoNumber of rows the import updated (pro-forma to invoice)
duplicate_countintegernoNumber of rows that were already imported
skipped_countintegernoNumber of skipped or invalid rows
unassigned_countintegernoNumber of rows without a vehicle
period_fromdateyesFirst cost date in the file
period_todateyesLast cost date in the file
created_by_idintegeryesUser who imported the file
created_attimestamp(3)noWhen the record was created

countries

Country list. File in the archive: database/countries.ndjson.

Columns of countries
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
legacy_idintegeryesRecord ID in the previous software (from the data migration)
codevarchar(3)noCountry code (ISO 3166-1)
namevarchar(100)noCountry name
tax_regionvarchar(50)yesVAT region, e.g. EU
created_attimestamp(3)noWhen the record was created

driver_documents

Driver documents (e.g. driving licence, driver card, medical certificate) with expiry dates and scans. File in the archive: database/driver_documents.ndjson.

Columns of driver_documents
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
driver_idinteger; references drivers.idnoDriver
namevarchar(120)noDocument name, e.g. driving licence
document_numbervarchar(100)yesDocument number
issuervarchar(120)yesIssuer of the document
issue_datedateyesDate of issue
expiry_datedateyesDocument valid until
notestextyesNotes
scan_original_filenamevarchar(255)yesFile name of the scan at upload
scan_storage_keyvarchar(500)yesKey of the stored scan; in the archive it is under files/private/ as for storage_key
scan_mime_typevarchar(100)yesContent type of the scan (MIME)
scan_size_bytesintegeryesScan size in bytes
scan_uploaded_attimestamp(3)yesWhen the scan was uploaded
scan_uploaded_byvarchar(255)yesUser who uploaded the scan (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

driver_salary_configs

Driver pay settings: pay basis and amounts, valid from a given date. File in the archive: database/driver_salary_configs.ndjson.

Columns of driver_salary_configs
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
driver_idinteger; references drivers.idnoDriver
pay_basisenum: percentage, daily_rate, fixednoPay basis: percentage, daily amount or fixed amount
salary_percentagenumeric(5,2)yesPercentage of the pay base on orders
daily_rate_amountnumeric(12,2)yesAmount per day
fixed_amountnumeric(12,2)yesFixed amount
effective_fromdatenoThe setting applies from this date
notestextyesNotes
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

drivers

Drivers. File in the archive: database/drivers.ndjson.

Columns of drivers
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
legacy_idintegeryesRecord ID in the previous software (from the data migration)
user_idintegeryesThe driver’s user account, if any
partner_idinteger; references partners.idyesPartner linked to the driver
default_vehicle_idinteger; references vehicles.idyesThe driver’s default vehicle
first_namevarchar(100)noFirst name
last_namevarchar(100)noLast name
license_numbervarchar(50)yesDriving licence number
license_expirydateyesDriving licence valid until
phonevarchar(30)yesPhone
employment_datedateyesDate of employment
employment_typeenum: indefinite, fixed_termnoEmployment type: permanent or fixed-term
contract_end_datedateyesEnd of a fixed-term employment contract
personal_tax_numbervarchar(30)yesThe driver’s tax number
health_cert_expirydateyesMedical certificate valid until
is_activebooleannoThe record is active; inactive records are not offered for new entries
anonymized_attimestamp(3)yesWhen the driver was anonymised (personal data erased); empty if not
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

einvoice_documents

Issued e-invoices (eSLOG 2.0 or UBL 2.1), stored exactly as issued. File in the archive: database/einvoice_documents.ndjson.

Columns of einvoice_documents
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
invoice_idinteger; references invoices.idnoInvoice
syntaxenum: eslog, ublnoE-invoice syntax: eslog (eSLOG 2.0) or ubl (UBL 2.1, Peppol BIS Billing 3.0)
format_versionvarchar(80)noVersion of the e-invoice format
document_type_codevarchar(3)noDocument type code (UNTDID 1001), e.g. 380 invoice, 381 credit note
invoice_numbervarchar(50)noInvoice number
xml_bytesbyteanoThe issued XML file as sent (bytes as hex)
sha256char(64)noSHA-256 of the XML file
size_bytesintegernoSize of the XML file in bytes
invoice_updated_attimestamp(3)noVersion of the invoice (time of its last change) the e-invoice was built from
created_attimestamp(3)noWhen the record was created
created_byvarchar(255)yesUser who created the record (e-mail)

external_batches

External batches: groups of orders that a partner lists under one number of its own (e.g. a collective delivery note). File in the archive: database/external_batches.ndjson.

Columns of external_batches
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
partner_idinteger; references partners.idnoPartner that sent the batch
settlement_idinteger; references external_settlements.idyesSettlement the batch belongs to
reference_numbervarchar(100)noThe partner’s batch number
reference_datedateyesBatch date
notestextyesNotes
created_attimestamp(3)noWhen the record was created
created_byvarchar(255)yesUser who created the record (e-mail)
updated_attimestamp(3)noWhen the record was last changed
updated_byvarchar(255)yesUser who last changed the record (e-mail)

external_rate_snapshots

Stored external figures used in cost estimates: fuel prices and exchange rates with their source and time of validity. File in the archive: database/external_rate_snapshots.ndjson.

Columns of external_rate_snapshots
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
kindenum: fuel, fxnoKind: fuel price (fuel) or exchange rate (fx)
providervarchar(80)noSource, e.g. the European Central Bank or goriva.si
geography_codevarchar(10)noCountry or area the value applies to
product_codevarchar(50)noProduct, e.g. type of fuel
valuenumeric(18,8)noValue
unitvarchar(30)noUnit of the value
currencyvarchar(3)noCurrency (ISO 4217 code, e.g. EUR)
tax_basisenum: gross, net, unknownnoWhether the value includes taxes: gross, net or unknown
effective_attimestamp(3)noTime the value applies to
fetched_attimestamp(3)noWhen the data was fetched from the source
stale_aftertimestamp(3)noAfter this time the value is no longer used
source_urltextnoURL of the source
source_versionvarchar(120)yesVersion of the data at the source
source_checksumvarchar(128)yesChecksum of the source data
attributiontextyesAttribution of the source
metadatajsonbyesAdditional source data (JSON)
created_attimestamp(3)noWhen the record was created

external_settlements

Partner settlements (e.g. a statement or self-billing credit note the partner sends) that group external batches and that an invoice can refer to. File in the archive: database/external_settlements.ndjson.

Columns of external_settlements
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
partner_idinteger; references partners.idnoPartner that sent the settlement
settlement_numbervarchar(100)noThe partner’s settlement number
settlement_datedateyesSettlement date
declared_total_amountnumeric(12,2)yesTotal on the partner’s document; compared with the sum of the orders when the invoice is issued
notestextyesNotes
created_attimestamp(3)noWhen the record was created
created_byvarchar(255)yesUser who created the record (e-mail)
updated_attimestamp(3)noWhen the record was last changed
updated_byvarchar(255)yesUser who last changed the record (e-mail)

fleetcore_driver_mappings

Links between Prevoxio drivers and drivers in the CVS (FleetCore) telematics: only the driver key in CVS and how the link was made, no names or tachograph card numbers. File in the archive: database/fleetcore_driver_mappings.ndjson.

Columns of fleetcore_driver_mappings
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
integration_idinteger; references tenant_integrations.idnoFleetCore integration
driver_idinteger; references drivers.idnoDriver in Prevoxio
fleetcore_driver_ext_keyvarchar(200)noDriver key in CVS (DriverExtKey)
match_methodenum: card, name, trip, manualnoHow the link was made: card (tachograph card), name, trip (driver seen on trips), manual
created_byvarchar(255)yesUser who created the record (e-mail)
updated_byvarchar(255)yesUser who last changed the record (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

fleetcore_vehicle_daily_metrics

Daily vehicle figures from FleetCore telematics: distance, fuel, idling and costs. File in the archive: database/fleetcore_vehicle_daily_metrics.ndjson.

Columns of fleetcore_vehicle_daily_metrics
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
mapping_idinteger; references fleetcore_vehicle_mappings.idnoLink of the vehicle to FleetCore
metric_datedatenoDay the figures refer to
distance_kmnumeric(10,2)yesDistance in km
distance_sourcevarchar(8)yesSource of the distance: fms (CAN odometer), map (map-matched) or gps
fuel_litersnumeric(10,3)yesFuel used in litres
consumption_l_100_kmnumeric(8,3)yesFuel consumption in l/100 km
driving_secondsintegeryesDriving time in seconds
driving_seconds_sourcevarchar(16)yesSource of the driving time: tachograph (tachograph activities) or fleet_usage (vehicle usage report)
idle_secondsintegeryesIdling time in seconds
idle_fuel_litersnumeric(10,3)yesFuel used while idling in litres
fuel_costnumeric(12,2)yesFuel cost
fuel_purchased_litersnumeric(10,3)yesFuel bought in litres
toll_parking_costnumeric(12,2)yesToll and parking costs
service_costnumeric(12,2)yesService costs
adblue_costnumeric(12,2)yesAdBlue costs in euros
other_costnumeric(12,2)yesOther CVS costs (damage, penalties, shipping, other) in euros
unconverted_cost_countintegernoNumber of foreign-currency costs without an exchange rate for the day, left out of the euro sums
currencyvarchar(3)noCurrency (ISO 4217 code, e.g. EUR)
sourceenum: consumption, fleet_usage, fueling, cost, idling, combinednoFleetCore report the record comes from
sample_countintegernoNumber of samples in the calculation
quality_scorenumeric(5,4)yesData quality score from 0 to 1
source_time_zonevarchar(80)noTime zone of the source data (IANA), e.g. Europe/Ljubljana
raw_source_updated_attimestamp(3)yesWhen the data last changed at the source
telemetry_fetched_attimestamp(3)yesWhen the telemetry was fetched
cost_fetched_attimestamp(3)yesWhen the costs were fetched
idling_fetched_attimestamp(3)yesWhen the idling data was fetched
idling_paired_sample_countintegernoNumber of paired idling samples
idling_quality_scorenumeric(5,4)yesQuality score of the idling data from 0 to 1
fetched_attimestamp(3)noWhen the data was fetched from the source
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

fleetcore_vehicle_mappings

Links between Prevoxio vehicles and FleetCore telematics vehicles, with the last known position. File in the archive: database/fleetcore_vehicle_mappings.ndjson.

Columns of fleetcore_vehicle_mappings
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
integration_idinteger; references tenant_integrations.idnoFleetCore integration
vehicle_idinteger; references vehicles.idnoVehicle in Prevoxio
fleetcore_ext_keyvarchar(200)noVehicle key in FleetCore
fleetcore_display_namevarchar(160)yesVehicle name in FleetCore
source_time_zonevarchar(80)noTime zone of the source data (IANA), e.g. Europe/Ljubljana
is_activebooleannoThe link is active
last_seen_attimestamp(3)yesWhen the vehicle was last seen in FleetCore
last_position_attimestamp(3)yesTime of the last known position
last_latnumeric(9,6)yesLast known position: latitude
last_lngnumeric(9,6)yesLast known position: longitude
last_location_namevarchar(255)yesPlace of the last known position
fleetcore_plate_numbervarchar(32)yesVehicle plate in CVS; positions are matched on it
last_odometer_kmnumeric(12,1)yesOdometer at the last known position (km)
last_odometer_sourcevarchar(4)yesSource of the odometer: fms (CAN) or gps (GPS-derived or calibrated)
created_byvarchar(255)yesUser who created the record (e-mail)
updated_byvarchar(255)yesUser who last changed the record (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

fleetcore_vehicle_trips

Vehicle trips from FleetCore telematics (distance, duration, fuel, start and end), the basis for automatic quote estimates; no driver data. File in the archive: database/fleetcore_vehicle_trips.ndjson.

Columns of fleetcore_vehicle_trips
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
mapping_idinteger; references fleetcore_vehicle_mappings.idnoLink of the vehicle to FleetCore
started_attimestamp(3)noStart of the trip
ended_attimestamp(3)yesEnd of the trip
trip_datedatenoTrip date in the source time zone
duration_secondsintegeryesDuration in seconds
distance_kmnumeric(10,2)noDistance in km
distance_sourcevarchar(8)yesSource of the distance: fms (CAN odometer), map (map-matched) or gps
fms_distance_kmnumeric(10,2)yesDistance from the CAN odometer (km)
map_distance_kmnumeric(10,2)yesMap-matched distance (km)
gps_distance_kmnumeric(10,2)yesDistance from GPS fixes (km)
start_odometer_kmnumeric(12,1)yesCAN odometer at the start of the trip (km)
end_odometer_kmnumeric(12,1)yesCAN odometer at the end of the trip (km)
fuel_litersnumeric(10,3)yesFuel used in litres
consumption_l_100_kmnumeric(8,3)yesFuel consumption in l/100 km
start_namevarchar(255)yesStart location
start_latnumeric(9,6)yesStart location: latitude
start_lngnumeric(9,6)yesStart location: longitude
start_country_codevarchar(2)yesCountry of the start location (ISO 3166-1 alpha-2)
start_postcodevarchar(16)yesPostcode of the start location
end_namevarchar(255)yesEnd location
end_latnumeric(9,6)yesEnd location: latitude
end_lngnumeric(9,6)yesEnd location: longitude
end_country_codevarchar(2)yesCountry of the end location (ISO 3166-1 alpha-2)
end_postcodevarchar(16)yesPostcode of the end location
time_adjustedbooleannoThe start or end fell in a daylight-saving change and was resolved
source_time_zonevarchar(80)noTime zone of the source data (IANA), e.g. Europe/Ljubljana
fetched_attimestamp(3)noWhen the data was fetched from the source
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

invoice_documents

Files attached to invoices (e.g. signed CMRs). File in the archive: database/invoice_documents.ndjson.

Columns of invoice_documents
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
invoice_idinteger; references invoices.idnoInvoice
kindenum: cmr, othernoKind of file: cmr or other
original_filenamevarchar(255)noFile name at upload
storage_keyvarchar(500)noKey of the stored file; in the archive the file is under files/private/ at this key without its leading tenants/<company>/ part
mime_typevarchar(100)noContent type of the file (MIME), e.g. application/pdf
size_bytesintegernoFile size in bytes
uploaded_attimestamp(3)noWhen the file was uploaded
uploaded_byvarchar(255)yesUser who uploaded the file (e-mail)

invoice_lines

Invoice lines. File in the archive: database/invoice_lines.ndjson.

Columns of invoice_lines
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
legacy_idintegeryesRecord ID in the previous software (from the data migration)
invoice_idinteger; references invoices.idnoInvoice
order_idinteger; references orders.idyesOrder linked to the line; empty for manually added lines
descriptiontextnoLine text
quantitynumeric(10,2)noQuantity
unit_pricenumeric(12,2)noUnit price without VAT
line_totalnumeric(12,2)noLine amount without VAT
account_codevarchar(20)yesAccount code
unit_codevarchar(3)noUnit code under UN/ECE Rec. 20 for e-invoices (C62 = one)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

invoice_number_sequences

Numbering state of invoices, credit notes and debit notes per year: the highest sequence number already handed out, which never goes down. File in the archive: database/invoice_number_sequences.ndjson.

Columns of invoice_number_sequences
ColumnTypeCan be emptyMeaning
yearinteger; primary keynoNumbering year
last_sequenceintegernoHighest sequence number handed out in that year, including numbers of deleted drafts; new numbers continue above it
updated_attimestamp(3)noWhen the record was last changed

invoice_number_starts

First number of invoices, credit notes or debit notes in a year, continuing the numbering of the previous software. File in the archive: database/invoice_number_starts.ndjson.

Columns of invoice_number_starts
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
yearintegernoYear
kindenum: invoice, credit_note, debit_notenoDocument type: invoice, credit note or debit note
start_sequenceintegernoFirst sequence number in that year
created_byvarchar(255)yesUser who created the record (e-mail)
updated_byvarchar(255)yesUser who last changed the record (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

invoice_orders

Links between invoices and orders: which orders an invoice bills. File in the archive: database/invoice_orders.ndjson.

Columns of invoice_orders
ColumnTypeCan be emptyMeaning
invoice_idinteger; primary key; references invoices.idnoInvoice
order_idinteger; primary key; references orders.idnoOrder; each order is billed by at most one invoice

invoices

Invoices, credit notes and debit notes. File in the archive: database/invoices.ndjson.

Columns of invoices
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
legacy_idintegeryesRecord ID in the previous software (from the data migration)
invoice_numbervarchar(50)noInvoice number
kindenum: invoice, credit_note, debit_notenoType: invoice, credit note or debit note
invoice_yearintegernoNumbering year
invoice_datedatenoInvoice date
service_datedatenoDate of service
due_date_basisenum: invoice_date, service_datenoWhich date the payment term runs from: invoice date or date of service
due_datedatenoDue date
customer_idinteger; references partners.idnoCustomer
driver_idinteger; references drivers.idyesDriver named on the invoice
subcarrier_idinteger; references partners.idyesSubcarrier
original_invoice_idinteger; references invoices.idyesOriginal invoice a credit or debit note refers to
tax_modeenum: auto, manualnoVAT mode: automatic (auto) or manual
subtotalnumeric(12,2)noAmount without VAT
tax_ratenumeric(5,2)noVAT rate in per cent
tax_notetextyesText on VAT exemption or reverse charge
tax_amountnumeric(12,2)noVAT amount
total_amountnumeric(12,2)noTotal including VAT
currencyvarchar(3)noCurrency (ISO 4217 code, e.g. EUR)
statusenum: draft, sent, paid, partially_paid, overdue, cancellednoInvoice status
amount_paidnumeric(12,2)noAmount paid
payment_datedateyesPayment date
payment_methodvarchar(50)yesPayment method
subcarrier_pricenumeric(12,2)yesSubcarrier price
subcarrier_paidbooleannoThe subcarrier has been paid
subcarrier_paid_datedateyesDate the subcarrier was paid
subcarrier_invoice_receivedbooleannoThe subcarrier’s invoice has been received
subcarrier_invoice_received_datedateyesDate the subcarrier’s invoice was received
subcarrier_invoice_numbervarchar(100)yesSubcarrier’s invoice number
subcarrier_notestextyesNotes on the subcarrier
accounting_export_batch_idinteger; references accounting_export_batches.idyesLatest accounting export batch that contains the invoice
external_settlement_idinteger; references external_settlements.idyesPartner settlement the invoice refers to
attachment_templateenum: internal_liters, liters_transport, task_priceyesAttachment template printed with the invoice
attachment_datajsonbyesData of the invoice attachment (JSON)
released_order_idsjsonbyesOrders released when the invoice was cancelled, kept for a restore (JSON)
notestextyesNotes
buyer_referencevarchar(70)yesBuyer reference for the e-invoice (BT-10)
exported_to_accountingbooleannoThe invoice has been exported to accounting
exported_attimestamp(3)yesWhen the invoice was exported to accounting
created_attimestamp(3)noWhen the record was created
created_byvarchar(255)yesUser who created the record (e-mail)
updated_attimestamp(3)noWhen the record was last changed

order_documents

Files attached to orders (e.g. the customer’s order). File in the archive: database/order_documents.ndjson.

Columns of order_documents
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
order_idinteger; references orders.idnoOrder
kindenum: customer_order, othernoKind of file: the customer’s order (customer_order) or other
original_filenamevarchar(255)noFile name at upload
storage_keyvarchar(500)noKey of the stored file; in the archive the file is under files/private/ at this key without its leading tenants/<company>/ part
mime_typevarchar(100)noContent type of the file (MIME), e.g. application/pdf
size_bytesintegernoFile size in bytes
uploaded_attimestamp(3)noWhen the file was uploaded
uploaded_byvarchar(255)yesUser who uploaded the file (e-mail)

order_number_sequences

Order numbering state per year. File in the archive: database/order_number_sequences.ndjson.

Columns of order_number_sequences
ColumnTypeCan be emptyMeaning
yearinteger; primary keynoNumbering year
next_valueintegernoNext free sequence number
updated_attimestamp(3)noWhen the record was last changed

order_route_plans

Route plans frozen when an order was confirmed: planned km (empty, loaded, per country), driving time, tolls with VAT, planned cost and the inputs used. File in the archive: database/order_route_plans.ndjson.

Columns of order_route_plans
ColumnTypeCan be emptyMeaning
order_idinteger; primary key; references orders.idnoOrder the plan belongs to
versionintegernoVersion of the plan record
frozen_attimestamp(3)noWhen the plan was frozen (order confirmation)
frozen_byvarchar(255)yesUser who confirmed the order (e-mail)
frozen_statusvarchar(20)noOrder status that froze the plan
providervarchar(50)yesRouting provider
request_hashchar(64)yesSHA-256 of the routing request
route_computed_attimestamp(3)yesWhen the planned route was calculated
distance_kmnumeric(10,2)yesPlanned route length in km
loaded_distance_kmnumeric(10,2)yesPlanned km with cargo on board
empty_distance_kmnumeric(10,2)yesPlanned empty km
duration_secondsintegeryesPlanned driving time in seconds
toll_gross_eurnumeric(12,2)yesPlanned tolls in EUR including VAT
toll_net_eurnumeric(12,2)yesPlanned tolls in EUR net of VAT; empty when the VAT is not known
planned_cost_eurnumeric(12,2)yesPlanned transport cost in EUR; empty when incomplete
price_amountnumeric(12,2)yesOrder price at confirmation
price_currencyvarchar(3)yesPrice currency
planjsonbnoPlan details (JSON): km per leg and country, tolls per system with VAT, cost, margin and the inputs used
created_attimestamp(3)noWhen the record was created

order_stops

Additional stops of orders (loading or unloading places) in sequence. File in the archive: database/order_stops.ndjson.

Columns of order_stops
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
order_idinteger; references orders.idnoOrder
sequenceintegernoPosition in the list
addresstextyesAddress (street and number)
cityvarchar(100)yesCity
country_idinteger; references countries.idyesCountry
latnumeric(10,8)yesLatitude (WGS 84)
lngnumeric(11,8)yesLongitude (WGS 84)
labelvarchar(100)yesLabel of the stop, e.g. loading
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

order_templates

Order templates: saved form contents for quickly entering similar orders. File in the archive: database/order_templates.ndjson.

Columns of order_templates
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
namevarchar(100)noTemplate name
payloadjsonbnoContents of the order form (JSON), without the order number
created_byvarchar(255)yesUser who created the record (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

orders

Transport orders: customer, route, cargo, vehicle, driver, price, subcarrier, CMR details and status. File in the archive: database/orders.ndjson.

Columns of orders
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
legacy_narocilo_idintegeryesOrder ID in the previous software (several orders can share it)
legacy_promet_idintegeryesTransport ID in the previous software
legacy_order_numbervarchar(50)yesOrder number in the previous software
order_numbervarchar(50)noOrder number
order_yearintegernoNumbering year
order_datedatenoOrder date
customer_idinteger; references partners.idnoCustomer who ordered the transport
carrier_idinteger; references partners.idyesSubcarrier that carries out the transport instead of the company
sender_idinteger; references partners.idyesSender
recipient_idinteger; references partners.idyesRecipient
vehicle_idinteger; references vehicles.idyesTractor unit or truck
trailer_idinteger; references vehicles.idyesTrailer
driver_idinteger; references drivers.idyesDriver
external_vehicle_platevarchar(50)yesRegistration of the subcarrier’s vehicle
external_trailer_platevarchar(50)yesRegistration of the subcarrier’s trailer
origin_addresstextyesLoading address
origin_cityvarchar(100)yesLoading city
origin_country_idinteger; references countries.idyesLoading country
destination_addresstextyesUnloading address
destination_cityvarchar(100)yesUnloading city
destination_country_idinteger; references countries.idyesUnloading country
empty_pickup_addresstextyesAddress where the empty container is picked up
empty_pickup_cityvarchar(100)yesCity where the empty container is picked up
empty_pickup_country_idinteger; references countries.idyesCountry where the empty container is picked up
empty_return_addresstextyesAddress where the empty container is returned
empty_return_cityvarchar(100)yesCity where the empty container is returned
empty_return_country_idinteger; references countries.idyesCountry where the empty container is returned
origin_latnumeric(10,8)yesLoading latitude
origin_lngnumeric(11,8)yesLoading longitude
destination_latnumeric(10,8)yesUnloading latitude
destination_lngnumeric(11,8)yesUnloading longitude
empty_pickup_latnumeric(10,8)yesLatitude of the empty container pick-up
empty_pickup_lngnumeric(11,8)yesLongitude of the empty container pick-up
empty_return_latnumeric(10,8)yesLatitude of the empty container return
empty_return_lngnumeric(11,8)yesLongitude of the empty container return
is_round_tripbooleannoRound trip back to the start
route_distance_kmnumeric(10,2)yesBilled route length in km
route_duration_secondsintegeryesDriving time from the route calculation in seconds
route_toll_total_eurnumeric(12,2)yesTotal tolls in EUR including VAT, from the route calculation
route_tollsjsonbyesTolls by country and operator (JSON)
route_providervarchar(50)yesRouting provider
route_profilejsonbyesTruck data used for the route calculation (JSON)
route_warningsjsonbyesWarnings of the route calculation (JSON)
route_computed_attimestamp(3)yesWhen the route was calculated
route_request_hashchar(64)yesSHA-256 of the routing request
route_breakdownjsonbyesKm per leg (empty, loaded) and country, departure time and why HERE was not used (JSON)
route_geometryjsonbyesRoute line from older calculations (JSON); HERE route lines are not in the export
hazardous_goodstext[]yes, also an empty listKinds of dangerous goods (ADR) considered in the route calculation
tunnel_categoryvarchar(1)yesADR tunnel category (B, C, D or E)
adr_un_numbervarchar(4)yesUN number of the dangerous goods (four digits)
refrigeratedbooleannoCooled transport
refrigeration_temperaturevarchar(50)yesAsked temperature of the cooled transport, as entered
pickup_datetimestamp(3)yesLoading time
delivery_datetimestamp(3)yesDelivery time
goods_descriptiontextyesDescription of the goods
cargo_categoryenum: silo, cistern, container, curtainnoCargo category
weight_kgnumeric(10,2)yesCargo weight in kg
volume_m3numeric(10,3)yesCargo volume in m³
quantityintegeryesQuantity (number of units)
pricing_typeenum: manual, silo, cisternnoPrice list type: manual price, silo or cistern
pricing_location_idinteger; references pricing_locations.idyesPricing location the price is based on
pricing_rate_idinteger; references pricing_rates.idyesPricing rate the price is based on
source_quote_idinteger; references quotes.idyesQuote the order was created from
external_batch_idinteger; references external_batches.idyesExternal batch the order belongs to
price_amountnumeric(12,2)yesTransport price for the customer without VAT
price_currencyvarchar(3)noCurrency of the price
demurrage_amountnumeric(12,2)yesDemurrage (waiting charge) the customer pays on top of the transport price; its own invoice line
demurrage_notevarchar(200)yesDemurrage note printed on the invoice line
salary_base_amountnumeric(12,2)yesBase for the driver’s pay
salary_notestextyesNotes on the driver’s pay
cost_amountnumeric(12,2)yesTransport cost
statusenum: draft, confirmed, dispatched, in_transit, delivered, invoiced, cancellednoOrder status
is_archivedbooleannoThe order is archived
archived_attimestamp(3)yesWhen the order was archived
cmr_numbervarchar(50)yesCMR consignment note number
cargo_marksvarchar(200)yesMarks and numbers of the goods (CMR)
packages_countintegeryesNumber of packages (CMR)
packaging_methodvarchar(100)yesMethod of packing (CMR)
sender_instructionstextyesSender’s instructions (CMR)
attached_documentsvarchar(200)yesDocuments attached (CMR)
reference_numbervarchar(100)yesCustomer’s reference
subcarrier_pricenumeric(12,2)yesSubcarrier price
subcarrier_paidbooleannoThe subcarrier has been paid
subcarrier_paid_datedateyesDate the subcarrier was paid
subcarrier_invoice_receivedbooleannoThe subcarrier’s invoice has been received
subcarrier_invoice_received_datedateyesDate the subcarrier’s invoice was received
subcarrier_invoice_numbervarchar(100)yesSubcarrier’s invoice number
subcarrier_notestextyesNotes on the subcarrier
notestextyesNotes
created_attimestamp(3)noWhen the record was created
created_byvarchar(255)yesUser who created the record (e-mail)
updated_attimestamp(3)noWhen the record was last changed
updated_byvarchar(255)yesUser who last changed the record (e-mail)

partner_bank_accounts

Partners’ bank accounts. File in the archive: database/partner_bank_accounts.ndjson.

Columns of partner_bank_accounts
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
legacy_idintegeryesRecord ID in the previous software (from the data migration)
partner_idinteger; references partners.idnoPartner
bank_namevarchar(100)noBank name
account_numbervarchar(50)noAccount number
ibanvarchar(50)yesIBAN
swiftvarchar(20)yesSWIFT/BIC code
is_primarybooleannoThe partner’s main account
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

partner_contacts

Partners’ contact persons. File in the archive: database/partner_contacts.ndjson.

Columns of partner_contacts
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
legacy_idintegeryesRecord ID in the previous software (from the data migration)
partner_idinteger; references partners.idnoPartner
namevarchar(255)noFull name
positionvarchar(100)yesPosition
phonevarchar(30)yesPhone
mobilevarchar(30)yesMobile phone
emailvarchar(255)yesE-mail
is_primarybooleannoThe partner’s main contact
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

partners

Partners: customers, carriers (subcarriers), suppliers and employees. File in the archive: database/partners.ndjson.

Columns of partners
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
legacy_idintegeryesRecord ID in the previous software (from the data migration)
namevarchar(255)noPartner’s name or company name
tax_numbervarchar(30)yesTax number or VAT ID
typeenum: customer, carrier, supplier, employeenoMain partner type (for display)
is_customerbooleannoThe partner is a customer
is_carrierbooleannoThe partner is a carrier (subcarrier)
is_supplierbooleannoThe partner is a supplier
addresstextyesAddress (street and number)
postal_codevarchar(20)yesPostal code
cityvarchar(100)yesCity
country_idinteger; references countries.idyesCountry of the registered office
default_origin_addresstextyesDefault loading address for this partner’s orders
default_origin_cityvarchar(100)yesDefault loading city
default_origin_country_idinteger; references countries.idyesDefault loading country
default_origin_latnumeric(10,8)yesDefault loading place: latitude
default_origin_lngnumeric(11,8)yesDefault loading place: longitude
phonevarchar(30)yesPhone
emailvarchar(255)yesE-mail
payment_terms_idinteger; references payment_terms.idyesThe partner’s payment terms
is_activebooleannoThe record is active; inactive records are not offered for new entries
batch_label_singularvarchar(100)noThe partner’s name for an external batch, singular, e.g. delivery note
batch_label_pluralvarchar(100)noThe partner’s name for external batches, plural
settlement_label_singularvarchar(100)noThe partner’s name for a settlement, singular, e.g. Gutschrift
settlement_label_pluralvarchar(100)noThe partner’s name for settlements, plural
grouped_invoice_attachment_modeenum: none, internal_litersnoOlder attachment setting of grouped invoices: internal_liters means an attachment with litres
grouped_invoice_attachment_thresholdintegernoOlder threshold of orders for summarising a grouped invoice
grouped_invoice_workflowenum: batch_only, settlement_requirednoWhether a grouped invoice needs a partner settlement (settlement_required) or a batch is enough (batch_only)
grouped_invoice_attachment_templateenum: none, liters_transport, task_pricenoAttachment template of grouped invoices
grouped_invoice_summary_modeenum: threshold, always_summarynoWhen the orders on a grouped invoice are summarised in one line: above the threshold or always (always_summary)
grouped_invoice_summary_thresholdintegernoNumber of orders above which the lines of a grouped invoice are summarised
geo_latnumeric(10,8)yesPartner’s address: latitude
geo_lngnumeric(11,8)yesPartner’s address: longitude
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed
created_byvarchar(255)yesUser who created the record (e-mail)

payment_terms

Payment terms (days until due). File in the archive: database/payment_terms.ndjson.

Columns of payment_terms
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
codevarchar(20)noPayment term code
namevarchar(100)noName
daysintegernoDays until the invoice is due
created_attimestamp(3)noWhen the record was created

pricing_locations

Pricing locations: places that pricing rates apply to. File in the archive: database/pricing_locations.ndjson.

Columns of pricing_locations
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
namevarchar(150)noName of the pricing location
normalized_namevarchar(150)noName in a normalised form for search and matching
cityvarchar(100)yesCity
partner_idinteger; references partners.idyesPartner the location applies to
saved_location_idinteger; references saved_locations.idyesSaved location
notestextyesNotes
is_activebooleannoThe record is active; inactive records are not offered for new entries
created_byvarchar(255)yesUser who created the record (e-mail)
updated_byvarchar(255)yesUser who last changed the record (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

pricing_rates

Pricing rates (price list): price per billing unit for a pricing location and validity period. File in the archive: database/pricing_rates.ndjson.

Columns of pricing_rates
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
pricing_typeenum: manual, silo, cisternnoPrice list type
pricing_unitenum: per_ton, per_100_l, per_volume_step, per_tripnoBilling unit: per tonne, per 100 l, per volume step or per trip
pricing_location_idinteger; references pricing_locations.idnoPricing location
amountnumeric(12,3)noPrice per billing unit
volume_step_litersintegeryesVolume step in litres when billed per step
minimum_chargenumeric(12,3)yesMinimum charge
currencyvarchar(3)noCurrency (ISO 4217 code, e.g. EUR)
effective_fromdatenoValid from
effective_todateyesValid until; empty if open-ended
notestextyesNotes
is_activebooleannoThe record is active; inactive records are not offered for new entries
created_byvarchar(255)yesUser who created the record (e-mail)
updated_byvarchar(255)yesUser who last changed the record (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

quote_estimate_components

Items of a quote cost estimate (fuel, driver, tolls …) with quantity, price and data source. File in the archive: database/quote_estimate_components.ndjson.

Columns of quote_estimate_components
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
estimate_idinteger; references quote_estimates.idnoCost estimate
sequenceintegernoPosition in the list
kindenum: fuel, driver_driving, driver_service, driver_waiting, driver_daily_allowance, driver_overnight_allowance, fixed_vehicle_per_km, fixed_vehicle_per_day, maintenance, tyres, adblue, overhead, toll, ferry, tunnel, parking, loading, unloading, customs, border, othernoCost type
labelvarchar(120)noItem label
quantitynumeric(14,4)yesQuantity
unitvarchar(30)yesUnit of the quantity, e.g. km, l or h
unit_costnumeric(14,6)yesCost per unit
amountnumeric(12,2)yesItem amount
currencyvarchar(3)noCurrency (ISO 4217 code, e.g. EUR)
source_kindvarchar(50)noKind of price source, e.g. setting, FleetCore or public source
source_labelvarchar(160)noDescription of the price source
effective_attimestamp(3)yesTime the source price applies to
observed_fromtimestamp(3)yesStart of the observed period
observed_totimestamp(3)yesEnd of the observed period
fetched_attimestamp(3)yesWhen the data was fetched from the source
confidenceenum: high, medium, lownoConfidence of the item
provenancejsonbyesDetails of where the figure came from (JSON)
created_attimestamp(3)noWhen the record was created

quote_estimate_mutation_receipts

Receipts of saved cost estimates, so that a repeated request is not saved twice. File in the archive: database/quote_estimate_mutation_receipts.ndjson.

Columns of quote_estimate_mutation_receipts
ColumnTypeCan be emptyMeaning
idempotency_keyuuid; primary keynoOne-time request key (UUID) that prevents saving twice
actor_idvarchar(255)noUser who sent the request
request_hashchar(64)noSHA-256 of the request, used to recognise a repeated request
result_estimate_idinteger; references quote_estimates.idnoSaved cost estimate
response_payloadjsonbnoResponse at saving (JSON), also returned when the request is repeated
created_attimestamp(3)noWhen the record was created

quote_estimates

Cost estimates of quotes: expected and conservative cost, suggested price, margin, distances and the inputs and sources of the calculation. File in the archive: database/quote_estimates.ndjson.

Columns of quote_estimates
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
quote_idinteger; references quotes.idnoQuote
revisionintegernoRevision number of the estimate for the quote
engine_versionvarchar(30)noVersion of the estimating method
modeenum: standard, fleetcore_calibratednoEstimate mode: standard or calibrated with FleetCore data
currencyvarchar(3)noCurrency (ISO 4217 code, e.g. EUR)
expected_costnumeric(12,2)noExpected cost
conservative_costnumeric(12,2)noConservative (higher) cost estimate
suggested_sell_pricenumeric(12,2)noSuggested selling price
applied_sell_pricenumeric(12,2)yesSelling price used on the quote
target_margin_percentnumeric(6,3)noTarget margin in per cent
resulting_margin_percentnumeric(6,3)yesResulting margin in per cent
resulting_markup_percentnumeric(8,3)yesResulting markup in per cent
loaded_distance_kmnumeric(10,2)noLoaded distance in km
empty_distance_kmnumeric(10,2)noEmpty distance in km
total_distance_kmnumeric(10,2)noTotal distance in km
duration_secondsintegernoDuration in seconds
confidenceenum: high, medium, lownoConfidence of the estimate
warningsjsonbnoWarnings of the estimate (JSON)
normalized_inputjsonbnoInputs of the calculation (JSON)
route_snapshotjsonbnoRoute data at the time of the calculation (JSON)
source_snapshotjsonbnoPrices, settings and sources at the time of the calculation (JSON)
override_reasontextyesReason for a manually changed price
is_appliedbooleannoThe estimate is applied to the quote
created_byvarchar(255)yesUser who created the record (e-mail)
created_attimestamp(3)noWhen the record was created

quote_estimator_settings

Cost estimator settings (one record): default consumptions, prices and costs per kilometre, hour and day. File in the archive: database/quote_estimator_settings.ndjson.

Columns of quote_estimator_settings
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier (always 1)
currencyvarchar(3)noCurrency (ISO 4217 code, e.g. EUR)
default_fuel_consumption_l_100_kmnumeric(8,3)noDefault fuel consumption when loaded in l/100 km
default_empty_fuel_consumption_l_100_kmnumeric(8,3)noDefault fuel consumption when empty in l/100 km
default_idle_consumption_l_per_hournumeric(8,3)noFuel consumption while idling in l/h
default_fuel_price_per_liternumeric(10,4)yesDefault fuel price per litre
fuel_price_source_labelvarchar(160)yesSource of the default fuel price
fuel_price_effective_atdateyesDate of the default fuel price
fuel_price_max_age_daysintegernoMaximum age of the fuel price in days
driver_hourly_costnumeric(10,2)noDriver cost per driving hour
service_hourly_costnumeric(10,2)noCost per hour of loading or unloading
waiting_hourly_costnumeric(10,2)noCost per hour of waiting
daily_allowance_per_drivernumeric(10,2)noDaily allowance per driver
overnight_allowance_per_drivernumeric(10,2)noOvernight allowance per driver
second_driver_cost_factornumeric(6,3)noCost factor of a second driver
fixed_vehicle_cost_per_kmnumeric(10,4)noFixed vehicle cost per km
fixed_vehicle_cost_per_daynumeric(10,2)noFixed vehicle cost per day
maintenance_cost_per_kmnumeric(10,4)noMaintenance cost per km
tyre_cost_per_kmnumeric(10,4)noTyre cost per km
adblue_cost_per_kmnumeric(10,4)noAdBlue cost per km
overhead_flatnumeric(10,2)noFlat overhead per transport
average_speed_kphnumeric(7,2)noAverage speed in km/h
default_contingency_percentnumeric(6,3)noContingency in per cent
default_target_margin_percentnumeric(6,3)noDefault target margin in per cent
fleetcore_lookback_daysintegernoHow many days of FleetCore data are considered
fleetcore_min_distance_kmnumeric(10,2)noMinimum distance driven for calibration with FleetCore in km
fleetcore_max_age_hoursintegernoMaximum age of FleetCore data in hours
public_rate_max_age_daysintegernoMaximum age of public prices and rates in days
public_fuel_tax_treatmentvarchar(24)noTax treatment of the public fuel price, e.g. net_recoverable
public_fuel_vat_rate_percentnumeric(6,3)noVAT rate for the public fuel price in per cent
updated_byvarchar(255)yesUser who last changed the record (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

quote_mutation_receipts

Receipts of created or duplicated quotes, so that a repeated request does not create a duplicate. File in the archive: database/quote_mutation_receipts.ndjson.

Columns of quote_mutation_receipts
ColumnTypeCan be emptyMeaning
idempotency_keyuuid; primary keynoOne-time request key (UUID) that prevents saving twice
operationvarchar(32)noOperation: creating or duplicating a quote
actor_idvarchar(255)noUser who sent the request
request_hashchar(64)noSHA-256 of the request, used to recognise a repeated request
result_quote_idinteger; references quotes.idnoCreated quote
created_attimestamp(3)noWhen the record was created

quote_number_sequences

Quote numbering state per year. File in the archive: database/quote_number_sequences.ndjson.

Columns of quote_number_sequences
ColumnTypeCan be emptyMeaning
yearinteger; primary keynoNumbering year
next_valueintegernoNext free sequence number
updated_attimestamp(3)noWhen the record was last changed

quote_publications

Issued quotes: the PDF and commercial data, frozen at first issue; they cannot be changed. File in the archive: database/quote_publications.ndjson.

Columns of quote_publications
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
quote_idinteger; references quotes.idnoQuote
schema_versionintegernoVersion of the data format in commercial_data
quote_numbervarchar(50)noQuote number at issue
commercial_datajsonbnoCommercial data of the quote at issue (JSON)
pdf_bytesbyteanoThe issued PDF (bytes as hex)
published_byvarchar(255)noUser who issued the quote (e-mail)
created_attimestamp(3)noWhen the record was created

quote_stops

Stops of quotes in sequence. File in the archive: database/quote_stops.ndjson.

Columns of quote_stops
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
quote_idinteger; references quotes.idnoQuote
sequenceintegernoPosition in the list
addresstextyesAddress (street and number)
cityvarchar(100)yesCity
country_idinteger; references countries.idyesCountry
latnumeric(10,8)yesLatitude (WGS 84)
lngnumeric(11,8)yesLongitude (WGS 84)
labelvarchar(100)yesLabel of the stop
service_duration_minutesintegeryesExpected time at the stop in minutes
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

quotes

Quotes to customers: route, cargo, price, cost estimate and status. File in the archive: database/quotes.ndjson.

Columns of quotes
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
quote_numbervarchar(50)noQuote number
quote_yearintegernoNumbering year
quote_datedatenoQuote date
valid_untildateyesQuote valid until
customer_idinteger; references partners.idnoCustomer
sender_idinteger; references partners.idyesSender
recipient_idinteger; references partners.idyesRecipient
origin_addresstextyesLoading address
origin_cityvarchar(100)yesLoading city
origin_country_idinteger; references countries.idyesLoading country
destination_addresstextyesUnloading address
destination_cityvarchar(100)yesUnloading city
destination_country_idinteger; references countries.idyesUnloading country
origin_latnumeric(10,8)yesLoading latitude
origin_lngnumeric(11,8)yesLoading longitude
destination_latnumeric(10,8)yesUnloading latitude
destination_lngnumeric(11,8)yesUnloading longitude
pickup_datetimestamp(3)yesPlanned loading time
cargo_categoryenum: silo, cistern, container, curtainyesCargo category
is_round_tripbooleannoRound trip back to the start
loaded_distance_kmnumeric(10,2)yesLoaded distance in km
positioning_distance_kmnumeric(10,2)yesEmpty run to the loading place in km
return_distance_kmnumeric(10,2)yesReturn distance in km
route_duration_secondsintegeryesDriving time from the route calculation in seconds
route_providervarchar(50)yesRouting provider
route_referencevarchar(255)yesReference of the route calculation
route_geometryjsonbyesRoute line (JSON)
vehicle_cost_profile_idinteger; references vehicle_cost_profiles.idyesVehicle cost profile used for the estimate
estimate_vehicle_idinteger; references vehicles.idyesVehicle used for the cost estimate
goods_descriptiontextyesDescription of the goods
weight_kgnumeric(10,2)yesCargo weight in kg
volume_m3numeric(10,3)yesCargo volume in m³
quantityintegeryesQuantity (number of units)
pricing_typeenum: manual, silo, cisternnoPrice list type: manual price, silo or cistern
pricing_location_idinteger; references pricing_locations.idyesPricing location the price is based on
pricing_rate_idinteger; references pricing_rates.idyesPricing rate the price is based on
quoted_amountnumeric(12,2)yesQuoted price without VAT
quote_currencyvarchar(3)noCurrency of the quote
cost_amountnumeric(12,2)yesEstimated transport cost
statusenum: draft, sent, accepted, rejected, expired, convertednoQuote status
customer_termstextyesTerms for the customer printed on the quote
published_attimestamp(3)yesWhen the quote was first issued
notestextyesNotes
created_attimestamp(3)noWhen the record was created
created_byvarchar(255)yesUser who created the record (e-mail)
updated_attimestamp(3)noWhen the record was last changed
updated_byvarchar(255)yesUser who last changed the record (e-mail)

saved_location_aliases

Alternative spellings of saved location names (aliases) for search. File in the archive: database/saved_location_aliases.ndjson.

Columns of saved_location_aliases
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
saved_location_idinteger; references saved_locations.idnoSaved location
aliasvarchar(150)noAlternative spelling of the location name
normalized_aliasvarchar(150)noAlternative spelling in a normalised form for search
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

saved_locations

Saved locations (frequent loading and unloading places) with address and coordinates. File in the archive: database/saved_locations.ndjson.

Columns of saved_locations
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
namevarchar(150)noLocation name
normalized_namevarchar(150)noName in a normalised form for search and matching
addresstextyesAddress (street and number)
cityvarchar(100)yesCity
country_idinteger; references countries.idyesCountry
latnumeric(10,8)yesLatitude (WGS 84)
lngnumeric(11,8)yesLongitude (WGS 84)
partner_idinteger; references partners.idyesPartner linked to the location
notestextyesNotes
usage_countintegernoHow often the location was used
last_used_attimestamp(3)yesLast used
is_activebooleannoThe record is active; inactive records are not offered for new entries
created_byvarchar(255)yesUser who created the record (e-mail)
updated_byvarchar(255)yesUser who last changed the record (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

tenant_integrations

Integration settings (FleetCore), without the encrypted credential. File in the archive: database/tenant_integrations.ndjson. Without the columns holding security secrets: encrypted_credential.

Columns of tenant_integrations
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
providerenum: fleetcorenoIntegration provider
configuration_versionintegernoSettings version
environmentvarchar(30)noProvider’s environment, e.g. production
encryption_key_versionvarchar(50)yesVersion of the key the credential is encrypted with; the credential is not in the export
statusenum: unconfigured, unverified, active, error, disablednoIntegration status
configjsonbyesIntegration settings (JSON)
permissionsjsonbyesPermissions confirmed by the provider (JSON)
verified_attimestamp(3)yesWhen the connection was last verified
last_sync_attimestamp(3)yesWhen data was last synchronised
sync_watermarkjsonbyesHow far the data has been synchronised (JSON)
sync_lease_ownervarchar(100)yesProcess that is currently synchronising
sync_lease_untiltimestamp(3)yesSynchronisation lock valid until
last_error_codevarchar(80)yesCode of the last error
last_error_attimestamp(3)yesWhen the last error happened
created_byvarchar(255)yesUser who created the record (e-mail)
updated_byvarchar(255)yesUser who last changed the record (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

users

App users, without passwords and two-factor secrets. File in the archive: database/users.ndjson. Without the columns holding security secrets: password, totp_secret, recovery_codes.

Columns of users
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
emailtextnoSign-in e-mail address
first_nametextnoFirst name
last_nametextnoLast name
roleenum: admin, dispatcher, accountant, driver, mechanicnoRole that sets the user’s permissions
is_activebooleannoThe user can sign in
totp_enabledbooleannoThe user has two-factor authentication switched on
totp_last_used_stepintegeryesLast used time step of a two-factor code (each code works once)
token_versionintegernoCounter that ends existing sign-ins when the password changes
failed_login_attemptsintegernoConsecutive failed sign-ins
locked_untiltimestamp(3)yesSign-in is locked until this time
force_password_changebooleannoThe user must change the password at the next sign-in
signature_urlvarchar(255)yesSignature and stamp image for invoices; in the archive it is under files/private/signatures/ or, for older ones, files/public/
sign_invoicesbooleannoThe signature and stamp are printed on invoices the user creates
order_defaultsjsonbyesThis user’s default values for the order form (JSON)
anonymized_attimestamp(3)yesWhen the user was anonymised (personal data erased); empty if not
here_terms_accepted_attimestamp(3)yesWhen the user accepted the HERE terms of use
here_terms_versionvarchar(40)yesVersion of the HERE terms of use the user accepted
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

vasco_export_settings

The company’s account numbers for exporting issued invoices to the Vasco bookkeeping program (receivables, revenue, VAT). File in the archive: database/vasco_export_settings.ndjson.

Columns of vasco_export_settings
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier (always 1)
receivable_domestic_accountvarchar(12)noAccount for receivables from customers in Slovenia
receivable_foreign_accountvarchar(12)noAccount for receivables from customers abroad
revenue_domestic_accountvarchar(12)noRevenue account for customers in Slovenia (for invoice lines without their own account)
revenue_foreign_accountvarchar(12)noRevenue account for customers abroad (for invoice lines without their own account)
vat_accountvarchar(12)noAccount for VAT charged
updated_byvarchar(255)yesUser who last changed the record (e-mail)
updated_attimestamp(3)noWhen the record was last changed

vehicle_brands

Vehicle brand list. File in the archive: database/vehicle_brands.ndjson.

Columns of vehicle_brands
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
namevarchar(100)noBrand name
created_attimestamp(3)noWhen the record was created

vehicle_cost_profiles

Vehicle cost profiles for quote cost estimates. File in the archive: database/vehicle_cost_profiles.ndjson.

Columns of vehicle_cost_profiles
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
namevarchar(120)noProfile name
cargo_categoryenum: silo, cistern, container, curtainyesCargo category the profile applies to
fuel_consumption_l_100_kmnumeric(8,3)noFuel consumption in l/100 km
driver_hourly_costnumeric(10,2)yesDriver cost per hour
fixed_vehicle_cost_per_kmnumeric(10,4)yesFixed vehicle cost per km
maintenance_cost_per_kmnumeric(10,4)yesMaintenance cost per km
tyre_cost_per_kmnumeric(10,4)yesTyre cost per km
adblue_cost_per_kmnumeric(10,4)yesAdBlue cost per km
is_activebooleannoThe record is active; inactive records are not offered for new entries
created_byvarchar(255)yesUser who created the record (e-mail)
updated_byvarchar(255)yesUser who last changed the record (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

vehicle_costs

Actual vehicle costs from every source (Eurowag cards, DarsGo, CVS, accounting, manual entry): fuel, AdBlue, tolls, vignettes, parking, service. File in the archive: database/vehicle_costs.ndjson. Without the columns holding security secrets: card_hash, device_hash.

Columns of vehicle_costs
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
vehicle_idinteger; references vehicles.idyesVehicle
driver_idinteger; references drivers.idyesDriver
order_idinteger; references orders.idyesOrder
occurred_attimestamp(3)noTime of the cost (UTC)
occurred_ondatenoDate of the cost in the company calendar
countryvarchar(2)yesCountry of the cost (ISO code)
typeenum: fuel, adblue, toll, vignette, parking, service, othernoType: fuel, AdBlue, toll, vignette, parking, service or other
product_namevarchar(120)yesProduct as the source names it
quantitynumeric(12,3)yesQuantity
unitvarchar(10)yesUnit of the quantity, e.g. l
net_amountnumeric(12,2)yesAmount without VAT in the original currency
vat_ratenumeric(5,2)yesVAT rate in percent
vat_amountnumeric(12,2)yesVAT amount in the original currency
gross_amountnumeric(12,2)yesAmount including VAT in the original currency
currencyvarchar(3)noCurrency (ISO 4217 code, e.g. EUR)
net_amount_eurnumeric(12,2)yesAmount without VAT in euros
gross_amount_eurnumeric(12,2)yesAmount including VAT in euros
fx_ratenumeric(18,8)yesECB reference rate: currency units per 1 EUR
fx_rate_datedateyesDate of the rate used
fx_sourcevarchar(10)yesSource of the rate: eur (cost in euros) or ecb
statusenum: estimate, provisional, finalnoStatus of the cost: estimate, pro-forma or invoiced
sourceenum: eurowag_file, darsgo, cvs, accounting, manualnoSource of the cost: Eurowag file, DarsGo, CVS, accounting or manual entry
source_referencevarchar(200)yesReference of the cost at the source
supplier_namevarchar(120)yesSupplier, e.g. Eurowag or DARS
supplier_keyvarchar(40)yesProvider code, e.g. eurowag or dars
invoice_numbervarchar(60)yesSupplier invoice number
invoice_keyvarchar(60)yesInvoice number without punctuation, which recognises one invoice from a file and from accounting
invoice_datedateyesSupplier invoice date
station_namevarchar(200)yesFuel station, toll section or place of the cost
station_codevarchar(60)yesCode of the station or section at the source
card_last4varchar(4)yesLast four characters of the card number
device_last4varchar(4)yesLast four characters of the toll-box number
source_platevarchar(50)yesPlate as the source states it
odometer_kmintegeryesOdometer reading at the time of the cost
dedup_keyvarchar(100)noKey that prevents importing the same cost twice
match_keyvarchar(100)yesKey that links a pro-forma row with its invoice row
import_batch_idinteger; references cost_import_batches.idyesImport that created the row
last_import_batch_idinteger; references cost_import_batches.idyesImport that last changed the row
source_row_numberintegeryesRow number in the imported file
superseded_attimestamp(3)yesWhen a more accurate source replaced the row; such rows are not counted in totals
superseded_by_idinteger; references vehicle_costs.idyesRow that replaced it
superseded_reasonvarchar(30)yesReason it was replaced
notestextyesNotes
created_by_idintegeryesUser who created the row
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

vehicle_damages

Vehicle damages and their repair. File in the archive: database/vehicle_damages.ndjson.

Columns of vehicle_damages
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
vehicle_idinteger; references vehicles.idnoVehicle
datedatenoDate of the damage
descriptiontextnoDescription of the damage
repair_costnumeric(12,2)yesRepair cost
statusenum: open, in_repair, repairednoDamage status
repaired_datedateyesRepair date
notestextyesNotes
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

vehicle_documents

Vehicle documents (insurance, registration, ADR, technical inspection …) with expiry dates and scans. File in the archive: database/vehicle_documents.ndjson.

Columns of vehicle_documents
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
vehicle_idinteger; references vehicles.idnoVehicle
typeenum: insurance, registration, adr, fire_extinguisher, leasing, technical_exam, othernoDocument type
document_numbervarchar(100)yesDocument number
issue_datedateyesDate of issue
expiry_datedateyesDocument valid until
notestextyesNotes
scan_original_filenamevarchar(255)yesFile name of the scan at upload
scan_storage_keyvarchar(500)yesKey of the stored scan; in the archive it is under files/private/ as for storage_key
scan_mime_typevarchar(100)yesContent type of the scan (MIME)
scan_size_bytesintegeryesScan size in bytes
scan_uploaded_attimestamp(3)yesWhen the scan was uploaded
scan_uploaded_byvarchar(255)yesUser who uploaded the scan (e-mail)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

vehicle_types

Vehicle type list. File in the archive: database/vehicle_types.ndjson.

Columns of vehicle_types
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
codevarchar(20)noVehicle type code
namevarchar(100)noVehicle type name
descriptiontextyesDescription
created_attimestamp(3)noWhen the record was created

vehicles

Vehicles: tractor units, trucks and trailers. File in the archive: database/vehicles.ndjson.

Columns of vehicles
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
legacy_idintegeryesRecord ID in the previous software (from the data migration)
license_platevarchar(50)noRegistration number
internal_numbervarchar(50)yesInternal vehicle number
default_trailer_idinteger; references vehicles.idyesDefault trailer of the tractor unit
vehicle_type_idinteger; references vehicle_types.idyesVehicle type
brand_idinteger; references vehicle_brands.idyesVehicle brand
year_manufacturedintegeryesYear of manufacture
vin_numbervarchar(50)yesVehicle identification number (VIN)
capacity_kgintegeryesPayload in kg
capacity_m3numeric(10,2)yesCapacity in m³
length_mnumeric(5,2)yesLength in metres
width_mnumeric(5,2)yesWidth in metres
height_mnumeric(5,2)yesHeight in metres
owner_partner_idinteger; references partners.idyesPartner that owns the vehicle (e.g. a subcarrier); empty for own vehicles
is_activebooleannoThe record is active; inactive records are not offered for new entries
euro_standardvarchar(10)yesEURO emission class
gross_weight_kgintegeryesGross weight in kg (for routing)
axle_countintegeryesNumber of axles of the vehicle (for routing)
trailer_countintegeryesNumber of trailers towed when an order has no trailer selected
routing_unit_typevarchar(20)yesUnit type for routing: tractor, rigid truck, van or trailer
tare_weight_kgintegeryesTare weight of the vehicle in kg (for routing)
co2_classintegeryesCO2 class of the vehicle (1-5) for the German truck toll
fuel_typevarchar(20)yesFuel or drive of the vehicle
divisionenum: transport, constructionnoBusiness unit of the vehicle: haulage (transport) or construction sites (construction)
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed

work_order_attachments

Work order attachments (photos before and after the repair, documents). File in the archive: database/work_order_attachments.ndjson.

Columns of work_order_attachments
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
work_order_idinteger; references work_orders.idnoWork order
kindenum: photo_before, photo_after, documentnoKind of attachment: photo before or after the repair, or a document
original_filenamevarchar(255)noFile name at upload
storage_keyvarchar(500)noKey of the stored file; in the archive the file is under files/private/ at this key without its leading tenants/<company>/ part
mime_typevarchar(100)noContent type of the file (MIME), e.g. application/pdf
size_bytesintegernoFile size in bytes
uploaded_attimestamp(3)noWhen the file was uploaded
uploaded_byvarchar(255)yesUser who uploaded the file (e-mail)

work_order_notes

Notes on work orders (the conversation between office and mechanic). File in the archive: database/work_order_notes.ndjson.

Columns of work_order_notes
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
work_order_idinteger; references work_orders.idnoWork order
notetextnoText of the note
created_byvarchar(255)yesUser who created the record (e-mail)
created_attimestamp(3)noWhen the record was created

work_orders

Workshop work orders for vehicle repairs and maintenance, including at an external service. File in the archive: database/work_orders.ndjson.

Columns of work_orders
ColumnTypeCan be emptyMeaning
idinteger; primary keynoRecord identifier
vehicle_idinteger; references vehicles.idnoVehicle
titlevarchar(200)noTitle of the work order
descriptiontextyesDescription of the work
priorityenum: urgent, important, normalnoPriority
statusenum: new, queued, planned, accepted, in_progress, waiting_parts, postponed, done, cancelled, external_service, external_donenoWork order status
divisionenum: transport, constructionnoBusiness unit, taken over from the vehicle
due_datedateyesDue date
mechanic_notetextyesNote for the mechanic
created_byvarchar(255)yesUser who created the record (e-mail)
created_by_rolevarchar(20)yesRole of the user who created the work order
accepted_attimestamp(3)yesWhen the work order was accepted
started_attimestamp(3)yesWhen the work started
completed_attimestamp(3)yesWhen the work was completed
completed_byvarchar(255)yesUser who completed the work order (e-mail)
completion_notetextyesCompletion note
time_spent_minutesintegeryesTime spent in minutes
parts_usedtextyesParts used
external_service_namevarchar(200)yesExternal service
external_reasontextyesReason for the external service
external_sent_datedateyesDate sent to the external service
external_expected_returndateyesExpected return date
external_returned_datedateyesReturn date
external_repair_summarytextyesRepair summary of the external service
external_costnumeric(12,2)yesCost of the external service
external_statusenum: sent, waiting_repair, in_repair, completed, returnedyesStatus at the external service
created_attimestamp(3)noWhen the record was created
updated_attimestamp(3)noWhen the record was last changed