ur_ingest_session_plm_comment
Column |
Type |
PK |
Required |
Default |
ur_ingest_session_plm_comment_id |
VARCHAR |
Yes |
Yes |
|
ur_ingest_session_plm_acct_project_issue_id |
VARCHAR |
No |
Yes |
|
comment_id |
TEXT |
No |
Yes |
|
node_id |
TEXT |
No |
Yes |
|
url |
TEXT |
No |
Yes |
|
body |
TEXT |
No |
No |
|
body_text |
TEXT |
No |
No |
|
body_html |
TEXT |
No |
No |
|
user |
VARCHAR |
No |
Yes |
|
elaboration |
TEXT |
No |
No |
|
created_at |
TIMESTAMPTZ |
No |
No |
CURRENT_TIMESTAMP |
created_by |
TEXT |
No |
No |
'UNKNOWN' |
updated_at |
TIMESTAMPTZ |
No |
No |
|
updated_by |
TEXT |
No |
No |
|
deleted_at |
TIMESTAMPTZ |
No |
No |
|
deleted_by |
TEXT |
No |
No |
|
activity_log |
TEXT |
No |
No |
|
Foreign Keys
Column Name |
Foreign Key |
user |
user references ur_ingest_session_plm_user.ur_ingest_session_plm_user_id |
ur_ingest_session_plm_acct_project_issue_id |
ur_ingest_session_plm_acct_project_issue_id references ur_ingest_session_plm_acct_project_issue.ur_ingest_session_plm_acct_project_issue_id |
Indexes
Column Name |
Index Name |
ur_ingest_session_plm_acct_project_issue_id |
idx_ur_ingest_session_plm_comment__ur_ingest_session_plm_acct_project_issue_id |
comment_id |
sqlite_autoindex_ur_ingest_session_plm_comment_2 |
url |
sqlite_autoindex_ur_ingest_session_plm_comment_2 |
body |
sqlite_autoindex_ur_ingest_session_plm_comment_2 |
ur_ingest_session_plm_comment_id |
sqlite_autoindex_ur_ingest_session_plm_comment_1 |
SQL DDL
CREATE TABLE "ur_ingest_session_plm_comment" (
"ur_ingest_session_plm_comment_id" VARCHAR PRIMARY KEY NOT NULL,
"ur_ingest_session_plm_acct_project_issue_id" VARCHAR NOT NULL,
"comment_id" TEXT NOT NULL,
"node_id" TEXT NOT NULL,
"url" TEXT NOT NULL,
"body" TEXT,
"body_text" TEXT,
"body_html" TEXT,
"user" VARCHAR 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,
FOREIGN KEY("ur_ingest_session_plm_acct_project_issue_id") REFERENCES "ur_ingest_session_plm_acct_project_issue"("ur_ingest_session_plm_acct_project_issue_id"),
FOREIGN KEY("user") REFERENCES "ur_ingest_session_plm_user"("ur_ingest_session_plm_user_id"),
UNIQUE("comment_id", "url", "body")
)