Skip to content

Commit 2eae56d

Browse files
fixes #55 - suffix "_ck" for check constraints
1 parent dd136da commit 2eae56d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/2-naming-conventions/naming-conventions.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ Singular name of what is stored in the column (unless the column data type is a
6060

6161
Add a comment to the database dictionary for every column.
6262

63+
### Check Constraint
64+
65+
Table name or table abbreviation followed by the column and/or role of the check constraint, a `_ck` and an optional number suffix.
66+
67+
Examples:
68+
69+
* `employees_salary_min_ck`
70+
* `orders_mode_ck`
71+
6372
### DML / Instead of Trigger
6473

6574
Choose a naming convention that includes:

0 commit comments

Comments
 (0)