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 | {“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 | TIMESTAMP | false | {“isSqlDomainZodDescrMeta”:true ,“isDateSqlDomain”:true ,“isDateTime”:true } | |||
ingest_finished_at | TIMESTAMP | true | {“isSqlDomainZodDescrMeta”:true ,“isDateSqlDomain”:true ,“isDateTime”:true } | |||
elaboration | TEXT | true | {“isSqlDomainZodDescrMeta”:true ,“isJsonText”:true } | |||
created_at | TIMESTAMP | CURRENT_TIMESTAMP | true | |||
created_by | TEXT | ’UNKNOWN’ | true | |||
updated_at | TIMESTAMP | true | ||||
updated_by | TEXT | true | ||||
deleted_at | TIMESTAMP | 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(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) |