metarequired table
| Field | Type | Required | Meaning |
|---|---|---|---|
key | TEXT | yes | e.g. as_of |
value | TEXT | no | text; dates in YYYY-MM-DD |
Standards / legal@1
legal@1 entities, contracts, obligations and renewalsA local record of dates and terms supplied by the user: when an agreement renews, when a notice or filing is due, and which role is responsible. These records help the user organize and review their own inputs. They are not legal advice.
Check a database or a board against it: dashremix spec check. Start a new board on it: dashremix new <id> --schema legal@1. Hash 3f8ff17f10a3ab8b…
No board in the catalog reads it yet.
Compatible with finance@2.
Required tables must exist in every database that says it follows legal@1; required fields must be filled. Columns a board adds start with x_.
metarequired table| Field | Type | Required | Meaning |
|---|---|---|---|
key | TEXT | yes | e.g. as_of |
value | TEXT | no | text; dates in YYYY-MM-DD |
entitiesrequired tableOne row per entity in the user's register.
| Field | Type | Required | Meaning |
|---|---|---|---|
entity_id | TEXT | yes | source-scoped ID |
label | TEXT | yes | entity label, e.g. Sample Studio |
kind | TEXTentity_kinds | yes | company | nonprofit | partnership | trust | other |
status | TEXTentity_statuses | yes | active | inactive | dissolved | unknown |
jurisdiction | TEXT | no | authority's jurisdiction code or label |
registration_ref | TEXT | no | identifier assigned to the entity by the registry |
registered_on | TEXTdate | no | date recorded by the registry |
source | TEXT | yes | connector ID, e.g. entities-yaml |
source_ref | TEXT | yes | input file and row or source object ID |
imported_at | TEXTinstant | yes | UTC instant, excluded from meta.data_hash |
entity_rolesrequired tableOne row per role and term. Store the role only.
| Field | Type | Required | Meaning |
|---|---|---|---|
role_id | TEXT | yes | source-scoped role term ID |
entity_id | TEXT | yes | registered entity |
role | TEXT | yes | role label, e.g. Treasurer |
starts_on | TEXTdate | no | first local date of this term, if stated |
ends_on | TEXTdate | no | last local date of this term, if stated |
source | TEXT | yes | connector ID |
source_ref | TEXT | yes | input file and row or source object ID |
imported_at | TEXTinstant | yes | UTC instant, excluded from meta.data_hash |
contractsrequired tableOne row per agreement in the contract register.
| Field | Type | Required | Meaning |
|---|---|---|---|
contract_id | TEXT | yes | source-scoped agreement ID |
entity_id | TEXT | no | registered entity when a link is supplied |
label | TEXT | yes | short agreement label from the register |
counterparty_label | TEXT | no | organization or vendor label |
status | TEXTcontract_statuses | yes | draft | active | ended | cancelled | unknown |
starts_on | TEXTdate | no | first local date supplied by the agreement register |
term_ends_on | TEXTdate | no | stated last local date of the current term |
renewal_mode | TEXTrenewal_modes | yes | automatic | manual | none | unknown |
notice_days | INTEGER | no | stated number of days; context for review, not a deadline |
source | TEXT | yes | connector ID, e.g. contracts-csv |
source_ref | TEXT | yes | input file and row or source object ID |
imported_at | TEXTinstant | yes | UTC instant, excluded from meta.data_hash |
obligationsrequired tableOne occurrence per deadline, including filings, notices, and renewals.
| Field | Type | Required | Meaning |
|---|---|---|---|
obligation_id | TEXT | yes | source-scoped occurrence ID |
entity_id | TEXT | no | registered entity when supplied |
contract_id | TEXT | no | linked agreement when supplied |
kind | TEXTobligation_kinds | yes | filing | notice | renewal | payment | review | other |
label | TEXT | yes | source label for this occurrence |
due_on | TEXTdate | yes | local due date confirmed by the source |
status | TEXTobligation_statuses | yes | open | completed | waived | cancelled | unknown |
resolved_on | TEXTdate | no | local date the occurrence was closed, when supplied |
owner_role | TEXT | no | responsible role, e.g. Finance |
authority | TEXT | no | receiving organization, where supplied |
reference | TEXT | no | filing type or record reference, when supplied |
source | TEXT | yes | connector ID, e.g. obligations-ics |
source_ref | TEXT | yes | input file and row or source object ID |
imported_at | TEXTinstant | yes | UTC instant, excluded from meta.data_hash |
contract_pricesrequired tableOne stated contract price per effective date, in its original currency and billing interval.
| Field | Type | Required | Meaning |
|---|---|---|---|
contract_id | TEXT | yes | agreement this price belongs to |
effective_on | TEXTdate | yes | first local date of this price |
amount | REAL | yes | non-negative charge in major units of currency |
currency | TEXTcurrency | yes | ISO 4217, e.g. USD |
period | TEXTprice_periods | yes | once | monthly | quarterly | annual |
source | TEXT | yes | connector ID |
source_ref | TEXT | yes | input file and row or source object ID |
imported_at | TEXTinstant | yes | UTC instant, excluded from meta.data_hash |
import_issuesWhat an importer could not read or chose to leave out (1.1): an unknown deadline, an unreadable date, a row with no ID. A board's data review shows these rows; nothing is guessed.
| Field | Type | Required | Meaning |
|---|---|---|---|
issue_id | TEXT | yes | stable ID: <source>:<file>:<line> or <source>:<kind> |
severity | TEXTseverities | yes | info | warn | error (vocab severities) |
kind | TEXT | yes | skipped_row | unknown_deadline | unknown_layout | duplicate_row |
file | TEXT | no | the source file name (never its contents) |
line | INTEGER | no | 1-based line or calendar entry in that file, when the issue is one row |
detail | TEXT | yes | what happened, e.g. the due date is not a date |
handling | TEXT | yes | what was done, e.g. left the row out |
source | TEXT | no | connector ID |
annotationsrequired table| 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 | note text with metric placeholders for numbers |
author | TEXT | no | person or assistant |
source_ref | TEXT | no | source reference |
created_at | TEXT | no | ISO 8601 instant |
data_hash | TEXT | no | hash of cited metric values when written |
status | TEXT | no | active | stale | retired |
metric_registryrequired table| Field | Type | Required | Meaning |
|---|---|---|---|
metric_id | TEXT | yes | e.g. obligations.open |
version | INTEGER | no | metric version |
unit | TEXT | no | e.g. count |
params | TEXT | no | accepted metric parameters |
description | TEXT | no | metric description |
sql | TEXT | no | expanded SQL |
test | TEXT | no | check that exercises this metric |
Shared word lists, so every board and connector means the same thing by the same word.
contract_statuses5 valuesdraft · active · ended · cancelled · unknown
entity_kinds5 valuescompany · nonprofit · partnership · trust · other
entity_statuses4 valuesactive · inactive · dissolved · unknown
obligation_kinds6 valuesfiling · notice · renewal · payment · review · other
obligation_statuses5 valuesopen · completed · waived · cancelled · unknown
price_periods4 valuesonce · monthly · quarterly · annual
renewal_modes4 valuesautomatic · manual · none · unknown
severities3 valuesinfo · warn · error
import_issues (rows or calendar entries an importer could not read or left out, so aseverities vocabulary and the check import_issues_valid at fail (it readsspec/build.py, and checks.yaml names each check's text desc (the key the checker reads), so the descriptionsbilling@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 appslibrary@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