Skip to content

ur_ingest_session_task

Description

Contains entries related to task content ingestion paths. On multiple executions, unlike uniform_resource, ur_ingest_session_task rows are always inserted and references the uniform_resource primary key of its related content. This method allows for a more efficient query of file version differences across sessions. With SQL queries, you can detect which sessions have a file added or modified, which sessions have a file deleted, and what the differences are in file contents if they were modified across sessions.

Table Definition
CREATE TABLE "ur_ingest_session_task" (
"ur_ingest_session_task_id" VARCHAR PRIMARY KEY NOT NULL,
"ingest_session_id" VARCHAR NOT NULL,
"uniform_resource_id" VARCHAR,
"captured_executable" TEXT CHECK(json_valid(captured_executable)) NOT NULL,
"ur_status" TEXT,
"ur_diagnostics" TEXT CHECK(json_valid(ur_diagnostics) OR ur_diagnostics IS NULL),
"ur_transformations" TEXT CHECK(json_valid(ur_transformations) OR ur_transformations IS NULL),
"elaboration" TEXT CHECK(json_valid(elaboration) OR elaboration IS NULL),
"created_at" TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
"created_by" TEXT DEFAULT 'UNKNOWN',
"updated_at" TIMESTAMP,
"updated_by" TEXT,
"deleted_at" TIMESTAMP,
"deleted_by" TEXT,
"activity_log" TEXT,
FOREIGN KEY("ingest_session_id") REFERENCES "ur_ingest_session"("ur_ingest_session_id"),
FOREIGN KEY("uniform_resource_id") REFERENCES "uniform_resource"("uniform_resource_id")
)

Columns

NameTypeDefaultNullableParentsComment
ur_ingest_session_task_idVARCHARfalse{“isSqlDomainZodDescrMeta”:true ,“isVarChar”:true }
ingest_session_idVARCHARfalseur_ingest_session{“isSqlDomainZodDescrMeta”:true ,“isVarChar”:true }
uniform_resource_idVARCHARtrueuniform_resource{“isSqlDomainZodDescrMeta”:true ,“isVarChar”:true }
captured_executableTEXTfalse{“isSqlDomainZodDescrMeta”:true ,“isJsonText”:true }
ur_statusTEXTtrue
ur_diagnosticsTEXTtrue{“isSqlDomainZodDescrMeta”:true ,“isJsonText”:true }
ur_transformationsTEXTtrue{“isSqlDomainZodDescrMeta”:true ,“isJsonText”:true }
elaborationTEXTtrue{“isSqlDomainZodDescrMeta”:true ,“isJsonText”:true }
created_atTIMESTAMPCURRENT_TIMESTAMPtrue
created_byTEXT’UNKNOWN’true
updated_atTIMESTAMPtrue
updated_byTEXTtrue
deleted_atTIMESTAMPtrue
deleted_byTEXTtrue
activity_logTEXTtrue{“isSqlDomainZodDescrMeta”:true ,“isJsonSqlDomain”:true }

Constraints

NameTypeDefinition
ur_ingest_session_task_idPRIMARY KEYPRIMARY KEY (ur_ingest_session_task_id)
- (Foreign key ID: 0)FOREIGN KEYFOREIGN KEY (uniform_resource_id) REFERENCES uniform_resource (uniform_resource_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
- (Foreign key ID: 1)FOREIGN KEYFOREIGN KEY (ingest_session_id) REFERENCES ur_ingest_session (ur_ingest_session_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
sqlite_autoindex_ur_ingest_session_task_1PRIMARY KEYPRIMARY KEY (ur_ingest_session_task_id)
-CHECKCHECK(json_valid(captured_executable))
-CHECKCHECK(json_valid(ur_diagnostics) OR ur_diagnostics IS NULL)
-CHECKCHECK(json_valid(ur_transformations) OR ur_transformations IS NULL)
-CHECKCHECK(json_valid(elaboration) OR elaboration IS NULL)

Indexes

NameDefinition
idx_ur_ingest_session_task__ingest_session_idCREATE INDEX “idx_ur_ingest_session_task__ingest_session_id” ON “ur_ingest_session_task”(“ingest_session_id”)
sqlite_autoindex_ur_ingest_session_task_1PRIMARY KEY (ur_ingest_session_task_id)

Relations

er