constraints

1 rows


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 gen_random_uuid()
attributes.constraint_id FK_attributes_constraints_constraint_id N
constraints_members.constraint_id FK_constraints_members_constraints_constraint_id C

Unique identifier.

tenant_id uuid 2147483647 null
tenants.id FK_constraints_tenants_tenant_id C

Tenant identifier.

schema_id uuid 2147483647 null
schemas.id FK_constraints_schemas_schema_id C
name varchar 256 null
created_at timestamptz 35,6 now()

DateTime the record was created.

created_by uuid 2147483647 null

User who create the record. Null if System.

updated_at timestamptz 35,6 null

DateTime the record was last updated.

updated_by uuid 2147483647 null

User who last updated the record.

is_system bool 1 false

A system-generated record. Default = false

description text 2147483647 null
column_name text 2147483647 null
table_name text 2147483647 null
type int4 10 0

Type of the constraint. Options: 0 - List (Default, when constraint members get specified by “constraints_members” table), 1 - Table (when constraint members get specified by TableName and ColumnName properties), 2 - Range (reserved for future use).

Indexes

Constraint Name Type Sort Column(s)
PK_constraints Primary key Asc id
IX_constraints_created_at Performance Asc created_at
IX_constraints_id Must be unique Asc id
IX_constraints_is_system Performance Asc is_system
IX_constraints_name Performance Asc name
IX_constraints_schema_id Performance Asc schema_id
IX_constraints_tenant_id Performance Asc tenant_id

Relationships