groups

2 rows


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 gen_random_uuid()
groups.parent_id FK_groups_groups_parent_id C
groups_users.group_id FK_groups_users_groups_group_id C
maps.group_id FK_maps_groups_group_id N

Unique identifier.

tenant_id uuid 2147483647 null
tenants.id FK_groups_tenants_tenant_id C

Tenant identifier.

name varchar 256 null
parent_id uuid 2147483647 null
groups.id FK_groups_groups_parent_id C
index int4 10 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

Indexes

Constraint Name Type Sort Column(s)
PK_groups Primary key Asc id
IX_groups_created_at Performance Asc created_at
IX_groups_id Must be unique Asc id
IX_groups_is_system Performance Asc is_system
IX_groups_name Performance Asc name
IX_groups_parent_id Performance Asc parent_id
IX_groups_tenant_id Performance Asc tenant_id
UQ_groups_tenantid_name Must be unique Asc/Asc tenant_id + name

Relationships