Skip to content

Organization Role Type

Description

Entity to store different types of organization roles. Each role is identified by a unique code and has an associated value/description.

Table Definition
CREATE TABLE "organization_role_type" (
"organization_role_type_id" ULID PRIMARY KEY NOT NULL,
"code" TEXT /* UNIQUE COLUMN */ NOT NULL,
"value" TEXT NOT NULL,
"created_at" TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
"created_by" TEXT DEFAULT 'UNKNOWN',
"updated_at" TIMESTAMPTZ,
"updated_by" TEXT,
"deleted_at" TIMESTAMPTZ,
"deleted_by" TEXT,
"activity_log" TEXT,
UNIQUE("code")
)

Columns

NameTypeDefaultNullableChildrenComment
organization_role_type_idULIDfalseorganization_role{“isSqlDomainZodDescrMeta”:true,“isUlid”:true}
codeTEXTfalse
valueTEXTfalse
created_atTIMESTAMPTZCURRENT_TIMESTAMPtrue
created_byTEXT’UNKNOWN’true
updated_atTIMESTAMPTZtrue
updated_byTEXTtrue
deleted_atTIMESTAMPTZtrue
deleted_byTEXTtrue
activity_logTEXTtrue{“isSqlDomainZodDescrMeta”:true,“isJsonSqlDomain”:true}

Constraints

NameTypeDefinition
organization_role_type_idPRIMARY KEYPRIMARY KEY (organization_role_type_id)
sqlite_autoindex_organization_role_type_2UNIQUEUNIQUE (code)
sqlite_autoindex_organization_role_type_1PRIMARY KEYPRIMARY KEY (organization_role_type_id)

Indexes

NameDefinition
sqlite_autoindex_organization_role_type_2UNIQUE (code)
sqlite_autoindex_organization_role_type_1PRIMARY KEY (organization_role_type_id)

Relations

er