metarequired table
Key/value facts about this database.
| Field | Type | Required | Meaning |
|---|---|---|---|
key | TEXT | yes | schema, schema_version, as_of, data_hash, source_built_at or base_currency |
value | TEXT | no | text; dates as YYYY-MM-DD |
Standards / vehicle@1
vehicle@1 odometer, fuel and charging, and maintenance recordsA vehicle's stable local key links cumulative distance observations, fuel and charging events, completed service, and the next maintenance tasks. Vehicle Costs reads distances, quantities, and costs. Vehicle Maintenance reads service history and due thresholds. Small Fleet compares cost, recorded use, and due tasks across vehicles.
Check a database or a board against it: dashremix spec check. Start a new board on it: dashremix new <id> --schema vehicle@1. Hash faef19432737041a…
No board in the catalog reads it yet.
Required tables must exist in every database that says it follows vehicle@1; required fields must be filled. Columns a board adds start with x_.
metarequired tableKey/value facts about this database.
| Field | Type | Required | Meaning |
|---|---|---|---|
key | TEXT | yes | schema, schema_version, as_of, data_hash, source_built_at or base_currency |
value | TEXT | no | text; dates as YYYY-MM-DD |
vehiclesrequired tableOne vehicle, identified by a local or source-assigned alias.
| Field | Type | Required | Meaning |
|---|---|---|---|
vehicle_id | TEXT | yes | stable vehicle id; never a VIN, plate, driver or payment identifier |
label | TEXT | yes | display alias such as Birch Van; omit identifiers and names |
powertrain | TEXTpowertrains | no | controlled vehicle powertrain, NULL when unknown |
active_from | TEXTdate | no | first day in service for the fleet, if known |
active_to | TEXTdate | no | last day in service, inclusive; NULL when open or unknown |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export row or safe source id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | attribution for inferred values |
odometer_readingsrequired tableOne observed cumulative distance reading from a log, receipt, or service record.
| Field | Type | Required | Meaning |
|---|---|---|---|
reading_id | TEXT | yes | stable reading id |
vehicle_id | TEXT | yes | vehicle observed |
day | TEXTdate | yes | local calendar date of the reading |
odometer_m | INTEGER | yes | cumulative distance in whole metres; zero is valid |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export row or safe source id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | attribution for inferred values |
energy_purchasesrequired tableOne fuel purchase, charging session, or related refund; source data may contain only cost or only quantity.
| Field | Type | Required | Meaning |
|---|---|---|---|
purchase_id | TEXT | yes | stable purchase, session, or refund id |
vehicle_id | TEXT | yes | vehicle that incurred the cost or took the energy |
day | TEXTdate | yes | local transaction or session date |
energy_kind | TEXTenergy_kinds | yes | fuel, electricity or unknown energy classification |
volume_l | REAL | no | litres delivered for liquid fuel |
energy_wh | REAL | no | electrical energy delivered, in watt-hours (1 kWh = 1000 Wh; display kWh = energy_wh / 1000) |
fill_complete | INTEGER | no | 1 full tank, 0 partial fill, NULL unknown or not liquid fuel |
reading_id | TEXT | no | optional odometer observed at this event |
cost_amount | REAL | no | positive expense or negative refund, original currency major units |
currency | TEXTcurrency | no | ISO 4217 code when cost_amount is present |
cost_base | REAL | no | signed amount converted to meta.base_currency only when known |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export row or safe source id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | attribution for inferred values |
service_recordsrequired tableOne completed workshop visit or service event. Financial totals belong on this row even if several tasks were done.
| Field | Type | Required | Meaning |
|---|---|---|---|
service_id | TEXT | yes | stable event or invoice id |
vehicle_id | TEXT | yes | serviced vehicle |
day | TEXTdate | yes | local date the service was completed |
reading_id | TEXT | no | optional odometer observed at this event |
description | TEXT | no | safe short service description, with private identifiers removed |
cost_amount | REAL | no | net cost in original currency major units |
currency | TEXTcurrency | no | ISO 4217 code when cost_amount is present |
cost_base | REAL | no | signed amount converted to meta.base_currency only when known |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export row or safe source id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | attribution for inferred values |
service_tasksrequired tableOne tracked service task for a vehicle, with an optional recurring cadence or a known next-due threshold.
| Field | Type | Required | Meaning |
|---|---|---|---|
task_id | TEXT | yes | stable task id; two distinct tasks may share a kind |
vehicle_id | TEXT | yes | vehicle the task applies to |
label | TEXT | yes | display alias such as Front tyres |
service_kind | TEXTservice_kinds | yes | controlled maintenance category |
interval_days | INTEGER | no | elapsed calendar days between services, when known |
interval_m | INTEGER | no | elapsed metres between services, when known |
due_on | TEXTdate | no | explicit next-due date from source or override |
due_odometer_m | INTEGER | no | explicit next-due cumulative metres from source or override |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export row or safe source id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | attribution for inferred values |
service_itemsrequired tableOne completed service task in a service record. No monetary totals on this link.
| Field | Type | Required | Meaning |
|---|---|---|---|
service_id | TEXT | yes | record that completed the task |
task_id | TEXT | yes | task completed on the same vehicle |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export row or safe source id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | attribution for inferred values |
data_issuesImport issues keep source rows visible even when no vehicle fact can be safely emitted.
| Field | Type | Required | Meaning |
|---|---|---|---|
issue_id | TEXT | yes | stable issue id |
severity | TEXTseverities | yes | info, warn or error |
kind | TEXT | yes | machine-readable reason such as unknown_vehicle or invalid_units |
title | TEXT | yes | short display title |
detail | TEXT | yes | plain explanation without private source text |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | safe source id or file and line |
imported_at | TEXTinstant | yes | UTC import instant |
handling | TEXT | yes | what the importer did |
overridesLocal corrections applied during import.
| Field | Type | Required | Meaning |
|---|---|---|---|
override_id | TEXT | yes | stable override id |
target | TEXT | yes | table.key.column the override applies to |
field | TEXT | no | column name |
old_value | TEXT | no | value before |
new_value | TEXT | no | value after |
reason | TEXT | yes | why, in the person's words |
evidence | TEXT | no | where it comes from |
author | TEXT | no | person or assistant |
created_at | TEXTinstant | no | UTC instant |
annotationsNotes on metrics and pages. Numbers only through {{metric:...}} placeholders.
| Field | Type | Required | Meaning |
|---|---|---|---|
annotation_id | TEXT | yes | stable note id |
target | TEXT | yes | metric id or page id |
kind | TEXT | yes | note, caveat, flag, decision or open_item |
body | TEXT | yes | note text |
author | TEXT | no | person or assistant |
source_ref | TEXT | no | where it came from |
created_at | TEXTinstant | no | UTC instant |
data_hash | TEXT | no | hash of the cited metric values when written |
status | TEXT | no | active, stale or retired |
metric_registryThe board's metrics, installed from metrics.sql by the importer.
| Field | Type | Required | Meaning |
|---|---|---|---|
metric_id | TEXT | yes | metric id |
version | INTEGER | no | metric's own version |
unit | TEXT | no | unit of output |
params | TEXT | no | comma-separated parameters |
description | TEXT | no | the @desc line |
sql | TEXT | no | expanded SQL |
test | TEXT | no | the @test line |
Shared word lists, so every board and connector means the same thing by the same word.
confidence5 valuessource · rule · default · detected · manual
energy_kinds6 valuesgasoline · diesel · electricity · other_liquid · other · unknown
powertrains6 valuescombustion · hybrid · plug_in_hybrid · battery_electric · fuel_cell · other
service_kinds9 valuesoil · tyres · brakes · battery · inspection · fluids · filters · repair · other
severities3 valuesinfo · warn · error
energy_purchases.energy_wh in watt-hours (display kWh), not energy_kcal; the spec-wide units rule now says electrical energy is in watt-hours and only food and exercise energy in kilocalories. No 1.0.0 database existed outside the fixture, so no migration.billing@1Billing: customers, subscriptions over time, invoices and their lines, payments, refunds and MRRcalendar@1Calendar: events and tracked timecode@1Code: pull requests, reviews, issues, deployments, releases, commits, CI, uptime, dependencies and sprintscommerce@1Commerce: orders, refunds and tax, ticket sales, point-of-sale summaries, supplier costs and partnershipscrm@1CRM: organizations, deals, activities, tickets and survey responsesfinance@2Finance: accounts, balances, transactions, budgets and recurring chargeshealth@1Health: daily body metrics, sleep sessions with stages, workouts, food eaten and body measurements from wearables, scales and health appslegal@1Legal records: entities, contracts, obligations and renewalslibrary@1Library: the books you read, are reading and want to readpeople@1People: team staffing, hiring, time off and scored surveysrental@1Rental: short-term rental listings, reservations, payouts, calendar and coststracker@1Tracker: habits, mood, activities and journal entries you log by handtravel@1Travel: days present in each countryweb@1Web: search, site traffic, creator audiences, content and campaign performance