metarequired table
Database metadata. See standard.json for required keys.
| Field | Type | Required | Meaning |
|---|---|---|---|
key | TEXT | yes | metadata key, e.g. base_currency |
value | TEXT | no | text value |
Standards / commerce@1
commerce@1 orders, refunds and tax, ticket sales, point-of-sale summaries, supplier costs and partnershipsA connector writes the grains present in its source. A board can read just the tables it needs, leaving the other tables empty. Order-level exports, summarized POS reports, affiliate reports and supplier invoices are kept at their own grain, without creating synthetic orders or adding overlapping totals. Subscription state and invoice receivables belong to billing@1.
Check a database or a board against it: dashremix spec check. Start a new board on it: dashremix new <id> --schema commerce@1. Hash 7963278a44fc91bc…
No board in the catalog reads it yet.
Required tables must exist in every database that says it follows commerce@1; required fields must be filled. Columns a board adds start with x_.
metarequired tableDatabase metadata. See standard.json for required keys.
| Field | Type | Required | Meaning |
|---|---|---|---|
key | TEXT | yes | metadata key, e.g. base_currency |
value | TEXT | no | text value |
channelsOne channel within a merchant account, including an offline register or ticket outlet.
| Field | Type | Required | Meaning |
|---|---|---|---|
channel_id | TEXT | yes | stable namespaced id |
name | TEXT | yes | display label, e.g. Lobby box office |
kind | TEXTchannel_kinds | yes | channel_kinds vocabulary |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
productsOne product, ticket class, or POS item from the merchant's catalogue.
| Field | Type | Required | Meaning |
|---|---|---|---|
product_id | TEXT | yes | stable namespaced product or variant id |
name | TEXT | yes | display label, e.g. Ceramic cup |
sku | TEXT | no | merchant's published item code |
category | TEXT | no | source category, if provided |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
eventsOne ticketed event or performance. Every separately sold occurrence has its own event id.
| Field | Type | Required | Meaning |
|---|---|---|---|
event_id | TEXT | yes | stable namespaced id |
name | TEXT | yes | event label, e.g. Paper Lantern Night |
starts_at | TEXTinstant | yes | UTC start instant |
tz | TEXT | yes | IANA time zone of the event |
capacity | INTEGER | no | sellable admission count, when declared |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
ordersOne merchant order at its original value, before refunds.
| Field | Type | Required | Meaning |
|---|---|---|---|
order_id | TEXT | yes | stable merchant-scoped id |
channel_id | TEXT | yes | sales channel, including an explicitly unknown channel |
customer_id | TEXT | no | opaque merchant-scoped buyer id, when repeat buyers can be identified |
ordered_on | TEXTdate | yes | merchant-local order day |
ordered_at | TEXTinstant | no | UTC order instant when available |
tz | TEXT | no | IANA time zone used for ordered_on, when available |
ship_country | TEXTcountry | no | ISO 3166-1 alpha-2 country the order shipped to (or was collected in), when the export gives it (1.1) |
ship_region | TEXT | no | ISO 3166-2 subdivision code without the country prefix (CA, ON, NSW), when given; the tax jurisdiction a sales-tax board groups by (1.1) |
status | TEXTorder_status | yes | order_status vocabulary |
currency | TEXTcurrency | yes | ISO 4217 of every amount on this row |
gross_amount | REAL | yes | merchandise amount before discounts, shipping and tax |
discount_amount | REAL | yes | reduction in merchandise price |
shipping_amount | REAL | yes | shipping charged, excluding tax |
tax_amount | REAL | yes | total tax charged, including shipping tax where applicable |
total_amount | REAL | yes | gross minus discount plus shipping and tax |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
order_linesOne merchandise line on an order. A ticket line links to its event; other lines leave event_id empty.
| Field | Type | Required | Meaning |
|---|---|---|---|
line_id | TEXT | yes | stable namespaced id |
order_id | TEXT | yes | original order id |
product_id | TEXT | no | known product or ticket class |
event_id | TEXT | no | ticketed occurrence |
quantity | REAL | yes | sold quantity; fractional quantities are valid for weighed goods |
currency | TEXTcurrency | yes | ISO 4217, same as the order |
gross_amount | REAL | yes | line amount before discounts and tax |
discount_amount | REAL | yes | discount allocated to this line, including order-level discounts if allocated |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
refundsOne non-overlapping amount refunded. An export can contain order-level rows, item allocations or both at distinct grains.
| Field | Type | Required | Meaning |
|---|---|---|---|
refund_id | TEXT | yes | stable refund id or refund-allocation id |
order_id | TEXT | yes | original order id |
line_id | TEXT | no | refunded item where known |
refunded_on | TEXTdate | yes | merchant-local effective refund day |
quantity | REAL | no | refunded item units if the source reports them |
currency | TEXTcurrency | yes | ISO 4217, same as the order |
merchandise_amount | REAL | yes | refunded merchandise after applicable discounts |
shipping_amount | REAL | yes | refunded shipping, excluding tax |
tax_amount | REAL | yes | tax returned to the buyer |
total_amount | REAL | yes | merchandise plus shipping and tax |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
order_taxesOne tax component by jurisdiction on an order or refund, where the source breaks it out.
| Field | Type | Required | Meaning |
|---|---|---|---|
tax_id | TEXT | yes | stable namespaced tax component id |
order_id | TEXT | yes | original order id |
refund_id | TEXT | no | tax returned; NULL means tax charged on sale |
jurisdiction | TEXT | yes | source tax jurisdiction code or stable mapped label |
tax_kind | TEXTtax_kinds | yes | tax_kinds vocabulary |
rate | REAL | no | applied share as a decimal, e.g. 0.075 |
taxable_amount | REAL | no | reported taxable basis for this component, including a zero basis |
currency | TEXTcurrency | yes | ISO 4217, same as the order |
tax_amount | REAL | yes | nonnegative collected or returned component |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
event_sales_targetsOne planned end-of-day cumulative ticket target for an event.
| Field | Type | Required | Meaning |
|---|---|---|---|
target_id | TEXT | yes | stable id derived from event and target day |
event_id | TEXT | yes | target event |
target_on | TEXTdate | yes | date in events.tz |
tickets_target | INTEGER | yes | desired cumulative net tickets by end of day |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
pos_dailyOne non-overlapping daily or daypart POS summary for a channel, with no synthetic order rows.
| Field | Type | Required | Meaning |
|---|---|---|---|
summary_id | TEXT | yes | stable namespaced id |
channel_id | TEXT | yes | reporting location or register |
sold_on | TEXTdate | yes | local business date of the shift |
daypart | TEXTdayparts | yes | dayparts vocabulary |
covers | INTEGER | no | guests seated; NULL if unavailable |
checks | INTEGER | no | closed checks; NULL if unavailable |
currency | TEXTcurrency | yes | ISO 4217 of every amount on this row |
gross_amount | REAL | yes | merchandise sales before discounts/refunds, excluding tax |
discount_amount | REAL | yes | discounts applied |
refund_amount | REAL | yes | merchandise refunds recorded that day or daypart |
net_amount | REAL | yes | gross minus discounts and refunds, possibly negative |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
supplier_invoice_linesOne supplier invoice or supplier credit line for food and other inventory costs.
| Field | Type | Required | Meaning |
|---|---|---|---|
line_id | TEXT | yes | stable namespaced source invoice line id |
invoice_id | TEXT | yes | merchant-scoped source supplier invoice id |
supplier_id | TEXT | yes | opaque supplier id in this merchant's account |
issued_on | TEXTdate | yes | supplier invoice date |
item_id | TEXT | no | opaque supplier item id, when available |
item_name | TEXT | yes | product display label |
category | TEXT | no | explicit category, e.g. food or beverages |
kind | TEXTsupplier_line_kinds | yes | supplier_line_kinds vocabulary |
quantity | REAL | no | positive billed or credited units when available |
unit | TEXT | no | unit of quantity, e.g. kg or each |
currency | TEXTcurrency | yes | ISO 4217 of the amount |
amount | REAL | yes | cost or returned cost excluding tax; credits subtract |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
affiliate_dailyOne reported day and partner commission bucket. Buckets on a day have disjoint source attribution.
| Field | Type | Required | Meaning |
|---|---|---|---|
activity_id | TEXT | yes | stable namespaced id |
partner_id | TEXT | yes | opaque affiliate partner or program id |
partner_name | TEXT | no | display label, when reported |
activity_on | TEXTdate | yes | conversion or reporting date stated in the export |
status | TEXTaffiliate_status | yes | affiliate_status vocabulary |
payout_id | TEXT | no | opaque payout reference when one is reported |
clicks | INTEGER | no | attributed clicks if reported for this bucket |
conversions | INTEGER | no | attributed conversions if reported for this bucket |
currency | TEXTcurrency | yes | ISO 4217 of the commission |
commission_amount | REAL | yes | commission amount; reversed buckets subtract |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
sponsorship_dealsOne booked creator sponsorship deal; split distinct campaign bookings into separate rows.
| Field | Type | Required | Meaning |
|---|---|---|---|
deal_id | TEXT | yes | stable namespaced deal id |
sponsor_id | TEXT | yes | opaque sponsor id |
sponsor_name | TEXT | no | company display label, when reported |
campaign | TEXT | yes | deal or placement label |
booked_on | TEXTdate | yes | date agreement was booked |
due_on | TEXTdate | no | agreed delivery day, when known |
delivered_on | TEXTdate | no | date final contracted delivery was completed |
status | TEXTsponsorship_status | yes | sponsorship_status vocabulary |
currency | TEXTcurrency | yes | ISO 4217 of booked_amount |
booked_amount | REAL | yes | contracted amount excluding tax |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
sponsorship_payoutsOne payment applied to a sponsorship. A payment split across deals has one row per allocation.
| Field | Type | Required | Meaning |
|---|---|---|---|
payment_id | TEXT | yes | stable namespaced payment or allocation id |
deal_id | TEXT | yes | paid sponsorship |
received_on | TEXTdate | yes | local settlement day |
currency | TEXTcurrency | yes | ISO 4217, same as the deal |
amount | REAL | yes | received revenue applied to the deal, excluding tax |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
import_issuesConnector accounting or unresolved rows recorded for the board's to-review page.
| Field | Type | Required | Meaning |
|---|---|---|---|
issue_id | TEXT | yes | stable namespaced issue id |
severity | TEXTseverities | yes | severities vocabulary |
code | TEXT | yes | connector's stable issue kind |
detail | TEXT | yes | explanation without private row content |
source | TEXT | yes | connector id |
source_ref | TEXT | yes | export location or source object id |
imported_at | TEXTinstant | yes | UTC import instant |
confidence | TEXTconfidence | no | confidence vocabulary, only when inferred |
overridesrequired tableLocal corrections to source data, with the reason and evidence kept.
| Field | Type | Required | Meaning |
|---|---|---|---|
override_id | TEXT | yes | stable 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 | TEXT | no | ISO 8601 instant |
annotationsrequired tableNotes on metrics and pages (platform table). Numbers only through {{metric:...}} placeholders.
| Field | Type | Required | Meaning |
|---|---|---|---|
annotation_id | TEXT | yes | stable id |
target | TEXT | yes | metric id or page id |
kind | TEXT | yes | note | caveat | flag | decision | open_item |
body | TEXT | yes | the note text |
author | TEXT | no | person or assistant |
source_ref | TEXT | no | where it came from |
created_at | TEXT | no | ISO 8601 instant |
data_hash | TEXT | no | hash of the cited metric values when written (stale when they change) |
status | TEXT | no | active | stale | retired |
metric_registryrequired tableThe board's metrics, installed from metrics.sql by the importer (platform table).
| Field | Type | Required | Meaning |
|---|---|---|---|
metric_id | TEXT | yes | e.g. kpi.mrr |
version | INTEGER | no | the metric's own version |
unit | TEXT | no | usd | rows | pct | date | count ... |
params | TEXT | no | comma list of parameters it honours |
description | TEXT | no | the @desc line |
sql | TEXT | no | expanded SQL |
test | TEXT | no | the @test line (check that covers it) |
Shared word lists, so every board and connector means the same thing by the same word.
affiliate_status5 valuespending · approved · paid · reversed · unknown
channel_kinds6 valuesonline_store · marketplace · pos · ticketing · direct · unknown
confidence4 valuesrule · default · detected · manual
dayparts7 valuesall_day · breakfast · lunch · afternoon · dinner · late_night · other
order_status4 valuespending · completed · cancelled · unknown
severities3 valuesinfo · warn · error
sponsorship_status3 valuesbooked · delivered · cancelled
supplier_line_kinds2 valuespurchase · credit
tax_kinds5 valuessales_tax · vat · gst · other · unknown
orders.ship_country (ISO 3166-1 alpha-2) and orders.ship_region (ISO 3166-2 subdivision) so Salesstandard.json lists thecommerce@1 release. Defines merchant orders, items, returns, jurisdictional tax, ticket events andbilling@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 sprintscrm@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 countryvehicle@1Vehicle: odometer, fuel and charging, and maintenance recordsweb@1Web: search, site traffic, creator audiences, content and campaign performance