View · Index
No registered users in community rubick
in last 10 minutes

SQL Constraints Naming Conventions

Conventions I've adopted for naming constraints:
table foo (
  bar   integer constraint foo_bar_pk primary key
)

_pk  primary key
_fk  foreign key
_nn  not null
_ck  check
_uq  unique