Skip to content

Orchestration Session

Description

An orchestration session groups multiple orchestration events for reporting or other purposes

Table Definition
CREATE TABLE "orchestration_session" (
"orchestration_session_id" VARCHAR PRIMARY KEY NOT NULL,
"device_id" VARCHAR NOT NULL,
"orchestration_nature_id" TEXT NOT NULL,
"version" TEXT NOT NULL,
"orch_started_at" TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
"orch_finished_at" TIMESTAMPTZ,
"elaboration" TEXT CHECK(json_valid(elaboration) OR elaboration IS NULL),
"args_json" TEXT CHECK(json_valid(args_json) OR args_json IS NULL),
"diagnostics_json" TEXT CHECK(json_valid(diagnostics_json) OR diagnostics_json IS NULL),
"diagnostics_md" TEXT,
FOREIGN KEY("device_id") REFERENCES "device"("device_id"),
FOREIGN KEY("orchestration_nature_id") REFERENCES "orchestration_nature"("orchestration_nature_id")
)

Columns

NameTypeDefaultNullableChildrenParentsComment
orchestration_session_idVARCHARfalseorchestration_session_entry orchestration_session_state orchestration_session_exec orchestration_session_issueorchestration_session primary key and internal label (UUID)
device_idVARCHARfalsedevice{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
orchestration_nature_idTEXTfalseorchestration_nature
versionTEXTfalse
orch_started_atTIMESTAMPTZCURRENT_TIMESTAMPtrue
orch_finished_atTIMESTAMPTZtrue{“isSqlDomainZodDescrMeta”:true,“isDateSqlDomain”:true,“isDateTime”:true}
elaborationTEXTtrueJSON governance data (description, documentation, usage, etc. in JSON)
args_jsonTEXTtrueSesison arguments in a machine-friendly (engine-dependent) JSON format
diagnostics_jsonTEXTtrueDiagnostics in a machine-friendly (engine-dependent) JSON format
diagnostics_mdTEXTtrueDiagnostics in a human-friendly readable markdown format

Constraints

NameTypeDefinition
orchestration_session_idPRIMARY KEYPRIMARY KEY (orchestration_session_id)
- (Foreign key ID: 0)FOREIGN KEYFOREIGN KEY (orchestration_nature_id) REFERENCES orchestration_nature (orchestration_nature_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
- (Foreign key ID: 1)FOREIGN KEYFOREIGN KEY (device_id) REFERENCES device (device_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
sqlite_autoindex_orchestration_session_1PRIMARY KEYPRIMARY KEY (orchestration_session_id)
-CHECKCHECK(json_valid(elaboration) OR elaboration IS NULL)
-CHECKCHECK(json_valid(args_json) OR args_json IS NULL)
-CHECKCHECK(json_valid(diagnostics_json) OR diagnostics_json IS NULL)

Indexes

NameDefinition
sqlite_autoindex_orchestration_session_1PRIMARY KEY (orchestration_session_id)

Relations

er