[Feature] Show model-level constraints (PK, FK) in dbt docs #536
Labels
dbt-docs
duplicate
This issue or pull request already exists
enhancement
New feature or request
triage
Is this a new bug in dbt-core?
Current Behavior
When defining constraints on model-level in the
schema.yml
file and then executingdbt docs generate && dbt docs serve
, the columns constraint is not set.Expected Behavior
The CONSTRAINT value should be set to
PK
for this example.More generally, the expected behavior should be that there is no difference between setting the constraints at the column level or at the model level for the presentation of the value within the dbt documentation.
Steps To Reproduce
Initiate and configure a dbt project with:
dbt init
Add the model-level constraint to the
my_first_dbt_model
model:Run
dbt docs generate && dbt docs serve
The CONSTRAINT value is empty for the column
id
:Relevant log output
No response
Environment
Which database adapter are you using with dbt?
bigquery
Additional Context
No response
The text was updated successfully, but these errors were encountered: