Skip to content

Uniform Resource Ingest Session PLM Account Project

Description

Immutable ingest session folder system represents an organisation issues to be ingested. Each session includes an organisation, then name is the folder that was scanned.

Table Definition
CREATE TABLE "ur_ingest_session_plm_acct_project" (
"ur_ingest_session_plm_acct_project_id" VARCHAR PRIMARY KEY NOT NULL,
"ingest_session_id" VARCHAR NOT NULL,
"ingest_account_id" VARCHAR NOT NULL,
"parent_project_id" TEXT,
"name" TEXT NOT NULL,
"description" TEXT,
"id" TEXT,
"key" TEXT,
"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,
FOREIGN KEY("ingest_session_id") REFERENCES "ur_ingest_session"("ur_ingest_session_id"),
FOREIGN KEY("ingest_account_id") REFERENCES "ur_ingest_session_plm_account"("ur_ingest_session_plm_account_id"),
UNIQUE("name", "description")
)

Columns

NameTypeDefaultNullableChildrenParentsComment
ur_ingest_session_plm_acct_project_idVARCHARfalseuniform_resource ur_ingest_session_plm_acct_project_issue ur_ingest_session_plm_acct_label ur_ingest_session_plm_milestone ur_ingest_session_plm_acct_relationship{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
ingest_session_idVARCHARfalseur_ingest_session{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
ingest_account_idVARCHARfalseur_ingest_session_plm_account{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
parent_project_idTEXTtrueReferences itself to allow subprojects.
nameTEXTfalseThe name of the project
descriptionTEXTtrue
idTEXTtrue
keyTEXTtrue
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
ur_ingest_session_plm_acct_project_idPRIMARY KEYPRIMARY KEY (ur_ingest_session_plm_acct_project_id)
- (Foreign key ID: 0)FOREIGN KEYFOREIGN KEY (ingest_account_id) REFERENCES ur_ingest_session_plm_account (ur_ingest_session_plm_account_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_plm_acct_project_2UNIQUEUNIQUE (name, description)
sqlite_autoindex_ur_ingest_session_plm_acct_project_1PRIMARY KEYPRIMARY KEY (ur_ingest_session_plm_acct_project_id)
-CHECKCHECK(json_valid(elaboration) OR elaboration IS NULL)

Indexes

NameDefinition
idx_ur_ingest_session_plm_acct_project__name__descriptionCREATE INDEX “idx_ur_ingest_session_plm_acct_project__name__description” ON “ur_ingest_session_plm_acct_project”(“name”, “description”)
sqlite_autoindex_ur_ingest_session_plm_acct_project_2UNIQUE (name, description)
sqlite_autoindex_ur_ingest_session_plm_acct_project_1PRIMARY KEY (ur_ingest_session_plm_acct_project_id)

Relations

er