refactor(dbt): migrate to domain-scoped schema names
Some checks failed
CI / lint-and-test (pull_request) Has been cancelled
Some checks failed
CI / lint-and-test (pull_request) Has been cancelled
- Create generate_schema_name macro to use custom schema names directly - Update dbt_project.yml schemas: staging→stg_toronto, intermediate→int_toronto, marts→mart_toronto - Add dbt/macros/toronto/ directory for future domain-specific macros - Fix documentation drift in PROJECT_REFERENCE.md (load-data-only→load-toronto-only) - Update DATABASE_SCHEMA.md with new schema names - Update CLAUDE.md database schemas table - Update adding-dashboard.md runbook with domain-scoped pattern Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -103,7 +103,15 @@ models:
|
||||
staging:
|
||||
{dashboard_name}:
|
||||
+materialized: view
|
||||
+schema: staging
|
||||
+schema: stg_{dashboard_name}
|
||||
intermediate:
|
||||
{dashboard_name}:
|
||||
+materialized: view
|
||||
+schema: int_{dashboard_name}
|
||||
marts:
|
||||
{dashboard_name}:
|
||||
+materialized: table
|
||||
+schema: mart_{dashboard_name}
|
||||
```
|
||||
|
||||
Follow naming conventions:
|
||||
|
||||
Reference in New Issue
Block a user