Kaizen
Browse modulesInsightsinsights/serverInterfaces

Interface: ModelDbIssue

Defined in: server/insights/model/validate-model-against-db.ts:17

Boot-time (and integration-test) probe that a reporting model matches the live database: every subject relation exists (table, view, OR materialized view), every bound column exists, and the tenant column exists on the relation. Physical bindings are checked here — never against the derived metadata, which has no physical names.

Columns are read from pg_attribute (not information_schema.columns) so MATERIALIZED VIEWS — the documented heavy-aggregation optimization path — are covered uniformly with tables and plain views.

Properties

code

code: "relation-missing" | "column-missing" | "tenant-column-missing";

Defined in: server/insights/model/validate-model-against-db.ts:18


column?

optional column?: string;

Defined in: server/insights/model/validate-model-against-db.ts:22


message

message: string;

Defined in: server/insights/model/validate-model-against-db.ts:20


relation?

optional relation?: string;

Defined in: server/insights/model/validate-model-against-db.ts:21


subject

subject: string;

Defined in: server/insights/model/validate-model-against-db.ts:19

On this page