fix(recovery): restore source removed by production documentation merge
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
version: 2
|
||||
|
||||
# RAW. Declared, never modelled. A source has no SQL of its own — anything that
|
||||
# transforms belongs in staging, where BI-P003 assigns it NORMALIZED.
|
||||
sources:
|
||||
- name: opt_raw
|
||||
description: >
|
||||
Landed, untransformed data as delivered by the 0pt sourcing engine.
|
||||
RAW tier: no BI surface may read this directly without a recorded
|
||||
BI-P003 exception.
|
||||
schema: "{{ var('siax_tenant_id') }}_raw"
|
||||
loaded_at_field: ingested_at
|
||||
freshness:
|
||||
# BI-P026's DELAYED/STALE thresholds, expressed where dbt can act on them.
|
||||
warn_after: { count: 90, period: minute }
|
||||
error_after: { count: 180, period: minute }
|
||||
tables:
|
||||
- name: sales_events
|
||||
description: One row per invoiced sales line, as landed.
|
||||
columns:
|
||||
- name: event_id
|
||||
tests: [not_null, unique]
|
||||
- name: tenant_id
|
||||
description: Present on every raw row; the tier boundary depends on it.
|
||||
tests: [not_null]
|
||||
- name: ingested_at
|
||||
tests: [not_null]
|
||||
- name: customers
|
||||
description: Customer master as landed.
|
||||
columns:
|
||||
- name: customer_id
|
||||
tests: [not_null, unique]
|
||||
- name: tenant_id
|
||||
tests: [not_null]
|
||||
Reference in New Issue
Block a user