Skip to content

orchestration_nature

Description

Entity to define relationships between multiple tenants to multiple devices

Table Definition
CREATE TABLE "orchestration_nature" (
"orchestration_nature_id" TEXT PRIMARY KEY NOT NULL,
"nature" TEXT NOT NULL,
"elaboration" TEXT CHECK(json_valid(elaboration) OR elaboration IS 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("orchestration_nature_id", "nature")
)

Columns

NameTypeDefaultNullableChildrenComment
orchestration_nature_idTEXTfalseorchestration_session
natureTEXTfalse
elaborationTEXTtrue{“isSqlDomainZodDescrMeta”:true,“isJsonText”:true}
created_atTIMESTAMPTZCURRENT_TIMESTAMPtrue
created_byTEXT’UNKNOWN’true
updated_atTIMESTAMPTZtrue
updated_byTEXTtrue
deleted_atTIMESTAMPTZtrue
deleted_byTEXTtrue
activity_logTEXTtrue{“isSqlDomainZodDescrMeta”:true,“isJsonSqlDomain”:true}

Constraints

NameTypeDefinition
orchestration_nature_idPRIMARY KEYPRIMARY KEY (orchestration_nature_id)
sqlite_autoindex_orchestration_nature_2UNIQUEUNIQUE (orchestration_nature_id, nature)
sqlite_autoindex_orchestration_nature_1PRIMARY KEYPRIMARY KEY (orchestration_nature_id)
-CHECKCHECK(json_valid(elaboration) OR elaboration IS NULL)

Indexes

NameDefinition
idx_orchestration_nature__orchestration_nature_id__natureCREATE INDEX “idx_orchestration_nature__orchestration_nature_id__nature” ON “orchestration_nature”(“orchestration_nature_id”, “nature”)
sqlite_autoindex_orchestration_nature_2UNIQUE (orchestration_nature_id, nature)
sqlite_autoindex_orchestration_nature_1PRIMARY KEY (orchestration_nature_id)

Relations

er