Skip to content

Uniform Resource Ingest Session PLM Account Project Issue

Description

Contains messages related in a folder that was ingested. On multiple executions, unlike uniform_resource, ur_ingest_session_plm_acct_project_issue rows are always inserted and references the uniform_resource primary key of its related content. This method allows for a more efficient query of message version differences across sessions. With SQL queries, you can detect which sessions have a messaged added or modified, which sessions have a message deleted, and what the differences are in message contents if they were modified across sessions.

Table Definition
CREATE TABLE "ur_ingest_session_plm_acct_project_issue" (
"ur_ingest_session_plm_acct_project_issue_id" VARCHAR PRIMARY KEY NOT NULL,
"ingest_session_id" VARCHAR NOT NULL,
"ur_ingest_session_plm_acct_project_id" VARCHAR NOT NULL,
"uniform_resource_id" VARCHAR,
"issue_id" TEXT NOT NULL,
"issue_number" INTEGER,
"parent_issue_id" TEXT,
"title" TEXT NOT NULL,
"body" TEXT,
"body_text" TEXT,
"body_html" TEXT,
"state" TEXT NOT NULL,
"assigned_to" TEXT,
"user" VARCHAR NOT NULL,
"url" TEXT NOT NULL,
"closed_at" TEXT,
"issue_type_id" VARCHAR,
"time_estimate" INTEGER,
"aggregate_time_estimate" INTEGER,
"time_original_estimate" INTEGER,
"time_spent" INTEGER,
"aggregate_time_spent" INTEGER,
"aggregate_time_original_estimate" INTEGER,
"workratio" INTEGER,
"current_progress" INTEGER,
"total_progress" INTEGER,
"resolution_name" TEXT,
"resolution_date" TEXT,
"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("ur_ingest_session_plm_acct_project_id") REFERENCES "ur_ingest_session_plm_acct_project"("ur_ingest_session_plm_acct_project_id"),
FOREIGN KEY("uniform_resource_id") REFERENCES "uniform_resource"("uniform_resource_id"),
FOREIGN KEY("user") REFERENCES "ur_ingest_session_plm_user"("ur_ingest_session_plm_user_id"),
FOREIGN KEY("issue_type_id") REFERENCES "ur_ingest_session_plm_issue_type"("ur_ingest_session_plm_issue_type_id"),
UNIQUE("title", "issue_id", "state", "assigned_to")
)

Columns

NameTypeDefaultNullableChildrenParentsComment
ur_ingest_session_plm_acct_project_issue_idVARCHARfalseur_ingest_session_plm_acct_label ur_ingest_session_plm_acct_relationship ur_ingest_session_plm_comment ur_ingest_session_plm_issue_reaction{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
ingest_session_idVARCHARfalseur_ingest_session{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
ur_ingest_session_plm_acct_project_idVARCHARfalseur_ingest_session_plm_acct_project{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
uniform_resource_idVARCHARtrueuniform_resource{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
issue_idTEXTfalse
issue_numberINTEGERtrue
parent_issue_idTEXTtrue
titleTEXTfalse
bodyTEXTtrue
body_textTEXTtrue
body_htmlTEXTtrue
stateTEXTfalse
assigned_toTEXTtrue
userVARCHARfalseur_ingest_session_plm_user{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
urlTEXTfalse
closed_atTEXTtrue
issue_type_idVARCHARtrueur_ingest_session_plm_issue_type{“isSqlDomainZodDescrMeta”:true,“isVarChar”:true}
time_estimateINTEGERtrue
aggregate_time_estimateINTEGERtrue
time_original_estimateINTEGERtrue
time_spentINTEGERtrue
aggregate_time_spentINTEGERtrue
aggregate_time_original_estimateINTEGERtrue
workratioINTEGERtrue
current_progressINTEGERtrue
total_progressINTEGERtrue
resolution_nameTEXTtrue
resolution_dateTEXTtrue
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_issue_idPRIMARY KEYPRIMARY KEY (ur_ingest_session_plm_acct_project_issue_id)
- (Foreign key ID: 0)FOREIGN KEYFOREIGN KEY (issue_type_id) REFERENCES ur_ingest_session_plm_issue_type (ur_ingest_session_plm_issue_type_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
- (Foreign key ID: 1)FOREIGN KEYFOREIGN KEY (user) REFERENCES ur_ingest_session_plm_user (ur_ingest_session_plm_user_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
- (Foreign key ID: 2)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: 3)FOREIGN KEYFOREIGN KEY (ur_ingest_session_plm_acct_project_id) REFERENCES ur_ingest_session_plm_acct_project (ur_ingest_session_plm_acct_project_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
- (Foreign key ID: 4)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_issue_2UNIQUEUNIQUE (title, issue_id, state, assigned_to)
sqlite_autoindex_ur_ingest_session_plm_acct_project_issue_1PRIMARY KEYPRIMARY KEY (ur_ingest_session_plm_acct_project_issue_id)

Indexes

NameDefinition
idx_ur_ingest_session_plm_acct_project_issue__title__issue_id__state__assigned_toCREATE INDEX “idx_ur_ingest_session_plm_acct_project_issue__title__issue_id__state__assigned_to” ON “ur_ingest_session_plm_acct_project_issue”(“title”, “issue_id”, “state”, “assigned_to”)
sqlite_autoindex_ur_ingest_session_plm_acct_project_issue_2UNIQUE (title, issue_id, state, assigned_to)
sqlite_autoindex_ur_ingest_session_plm_acct_project_issue_1PRIMARY KEY (ur_ingest_session_plm_acct_project_issue_id)

Relations

er