Skip to content

Data model

The six core portfolio, evidence, and ledger tables, with their columns, defaults, and constraints. These are database column names in snake_case, not MCP input keys. Tool arguments use camelCase; see the MCP tools reference.

product

One product the company operates. Organization-scoped.

id
ULID primary key.
organization_id
The owning organization. Indexed.
name
Required.
summary
Optional description.
stage
Lifecycle stage. Defaults to idea.
monthly_budget_minor
Monthly budget in minor currency units. Defaults to 0.
currency
Defaults to USD.
posture
How the company is treating the product. Defaults to maintain.
archived
Boolean. Defaults to false.
created_at, updated_at
Timestamps.

weekly_snapshot

One replaceable week of evidence for one product. Unique on product and normalized UTC Monday together.

id
ULID primary key.
product_id
References product. Cascades on delete. Indexed.
week_start
UTC Monday for the reporting week. Unique per product and used for server freshness.
submitted_at
Submission timestamp. Required in storage; MCP defaults it to now when omitted.
created_at, updated_at
Timestamps.

area_signal

One area of evidence inside a snapshot. Unique on snapshot and area together.

id
ULID primary key.
weekly_snapshot_id
References weekly_snapshot. Cascades on delete.
area
One of product, sales, or marketing. Unique per snapshot.
focus_text
What the area was working toward.
current_value
Observed value for the week.
metric_name_snapshot
KPI name as it stood that week.
target_value_snapshot
Target as it stood that week.
unit_snapshot
Unit as it stood that week.
trend
One of up, down, or flat.
status
The model type includes populated, not_applicable, and missing. MCP writes accept only populated or not_applicable; missing is used for absent-snapshot read placeholders.
note
Free text.
created_at, updated_at
Timestamps.

metric_definition

The standing focus and KPI target for one area of one product. Unique on product and area together.

id
ULID primary key.
product_id
References product. Cascades on delete.
area
One of product, sales, or marketing. Unique per product.
focus_text
The standing focus for the area.
name
KPI name. Required.
target_value
Target number. Nullable.
unit
Unit of the target. Nullable.
created_at, updated_at
Timestamps.

decision

The immutable company decision ledger. There is no status, draft, or approval column.

id
ULID primary key.
organization_id
The owning organization.
product_id
Nullable, and deliberately carries no foreign key, so the ledger stays readable regardless of product lifecycle.
type
One of focus, budget, or metric. Required.
statement
The call itself. Required.
rationale
The reasoning. Nullable.
effective_date
Required date on the record. Recording applies the effect immediately, not on a delayed schedule.
review_date
Optional date to revisit the call.
change
JSON payload discriminated by kind, carrying the typed effect. Required.
supersedes_decision_id
The decision this one replaces, when it replaces one.
created_at, updated_at
Timestamps.

mcp_mutation_receipt

Makes MCP write tools safe to retry. Unique on organization, tool name, and idempotency key together.

id
ULID primary key.
organization_id
The owning organization.
tool_name
The write tool the receipt belongs to.
idempotency_key
The key supplied by the caller. Unique per organization and tool.
request_hash
Hash of the request, so a reused key with different arguments is detectable.
result
JSON result of the original call, replayed on retry.
created_at, updated_at
Timestamps.