Skip to content

Commit

Permalink
Update website/docs/reference/resource-properties/constraints.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Apr 4, 2024
1 parent f85ede2 commit 92be9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/reference/resource-properties/constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Constraints require the declaration and enforcement of a model [contract](/refer

Constraints may be defined for a single column, or at the model level for one or more columns. As a general rule, we recommend defining single-column constraints directly on those columns.

If you are defining multiple `primary_key` constraints for a single model, those MUST be defined at the model level. Defining multiple `primary_key` constraints at the column level is not supported.
If you are defining multiple `primary_key` constraints for a single model, those _must_ be defined at the model level. Defining multiple `primary_key` constraints at the column level is not supported.

The structure of a constraint is:
- `type` (required): one of `not_null`, `unique`, `primary_key`, `foreign_key`, `check`, `custom`
Expand Down

0 comments on commit 92be9b8

Please sign in to comment.