◮ Modelith design-first Design in git. Compile to contract-enforced dbt.
mdl — shop
$ mdl model render
# model: shop
entity customer · order · order_line · product
$ mdl new entity payment --definition "A settlement against an order"
created entity 'payment' (01M3WX64NZ…)
$ mdl validate
validation passed
$ mdl generate
wrote 9 files to target/dbt
$ mdl export contract
wrote contract to datacontract.yaml
$
customer
🔑 customer_idbigint
emailstring
full_namestring
created_attimestamp
order
🔑 order_idbigint
customer_id FKbigint
order_datedate
statusstring
order_line
🔑 order_line_idbigint
order_id FKbigint
product_id FKbigint
quantityinteger
product
🔑 product_idbigint
skustring
namestring
unit_pricedecimal
paymentnew
🔑 payment_idbigint
✓ valid
dbt · contract enforced
ODCS · data contract