{%header:Constraints%}

{%object_name%}

{%NotSystem: %} {%primary_key: {%ParentNotSystem: %} %}
 Primary key On field(s)
{%object_name%} {%constraint_columns%}

{%NotSystem: Add primary key %}

{%NotSystem: %} {%foreign_keys: {%ParentNotSystem: %} %}
 Foreign key On field(s) References On update On delete
{%object_name%} {%constraint_columns%} {%fk_table%} {%fk_referenced_columns%} {%fk_update%} {%fk_delete%}

{%NotSystem: Add foreign key %}

{%NotSystem: %} {%unique_constraints: {%ParentNotSystem: %} %}
Unique constraint On field(s)
{%object_name%} {%constraint_columns%}

{%NotSystem: Add unique %}

{%NotSystem: %} {%check_constraints: {%ParentNotSystem: %} %}
Check constraint Source
{%object_name%} {%check_source%}

{%NotSystem: Add check %}