ur_ingest_session
ur_ingest_session
Description
Immutable ingestion sessions represents any “discovery” or “walk” operation. This could be a device file system scan or any other resource discovery session. Each time a discovery operation starts, a record is created. ur_ingest_session has a foreign key reference to the device table so that the same device can be used for multiple ingest sessions but also the ingest sessions can be merged across workstations / servers for easier detection of changes and similaries between file systems on different devices.
Table Definition
Columns
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
ur_ingest_session_id | VARCHAR | false | ur_ingest_session_fs_path uniform_resource ur_ingest_session_fs_path_entry ur_ingest_session_task ur_ingest_session_imap_account ur_ingest_session_imap_acct_folder ur_ingest_session_imap_acct_folder_message ur_ingest_session_plm_account ur_ingest_session_plm_acct_project ur_ingest_session_plm_acct_project_issue ur_ingest_session_udi_pgp_sql | {“isSqlDomainZodDescrMeta”:true,“isVarChar”:true} | ||
device_id | VARCHAR | false | device | {“isSqlDomainZodDescrMeta”:true,“isVarChar”:true} | ||
behavior_id | VARCHAR | true | behavior | {“isSqlDomainZodDescrMeta”:true,“isVarChar”:true} | ||
behavior_json | TEXT | true | {“isSqlDomainZodDescrMeta”:true,“isJsonText”:true} | |||
ingest_started_at | TIMESTAMPTZ | false | {“isSqlDomainZodDescrMeta”:true,“isDateSqlDomain”:true,“isDateTime”:true} | |||
ingest_finished_at | TIMESTAMPTZ | true | {“isSqlDomainZodDescrMeta”:true,“isDateSqlDomain”:true,“isDateTime”:true} | |||
session_agent | TEXT | false | {“isSqlDomainZodDescrMeta”:true,“isJsonText”:true} | |||
elaboration | TEXT | true | {“isSqlDomainZodDescrMeta”:true,“isJsonText”:true} | |||
created_at | TIMESTAMPTZ | CURRENT_TIMESTAMP | true | |||
created_by | TEXT | ’UNKNOWN’ | true | |||
updated_at | TIMESTAMPTZ | true | ||||
updated_by | TEXT | true | ||||
deleted_at | TIMESTAMPTZ | true | ||||
deleted_by | TEXT | true | ||||
activity_log | TEXT | true | {“isSqlDomainZodDescrMeta”:true,“isJsonSqlDomain”:true} |
Constraints
Name | Type | Definition |
---|---|---|
ur_ingest_session_id | PRIMARY KEY | PRIMARY KEY (ur_ingest_session_id) |
- (Foreign key ID: 0) | FOREIGN KEY | FOREIGN KEY (behavior_id) REFERENCES behavior (behavior_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE |
- (Foreign key ID: 1) | FOREIGN KEY | FOREIGN KEY (device_id) REFERENCES device (device_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE |
sqlite_autoindex_ur_ingest_session_2 | UNIQUE | UNIQUE (device_id, created_at) |
sqlite_autoindex_ur_ingest_session_1 | PRIMARY KEY | PRIMARY KEY (ur_ingest_session_id) |
- | CHECK | CHECK(json_valid(behavior_json) OR behavior_json IS NULL) |
- | CHECK | CHECK(json_valid(session_agent)) |
- | CHECK | CHECK(json_valid(elaboration) OR elaboration IS NULL) |
Indexes
Name | Definition |
---|---|
sqlite_autoindex_ur_ingest_session_2 | UNIQUE (device_id, created_at) |
sqlite_autoindex_ur_ingest_session_1 | PRIMARY KEY (ur_ingest_session_id) |