device
Description
Identity, network segmentation, and sysinfo for devices on which uniform_resource are found
Table Definition
Columns
Name | Type | Default | Nullable | Children | Comment |
---|---|---|---|---|---|
device_id | VARCHAR | false | device_party_relationship behavior ur_ingest_session uniform_resource orchestration_session | {“isSqlDomainZodDescrMeta”:true,“isVarChar”:true} | |
name | TEXT | false | unique device identifier (defaults to hostname) | ||
state | TEXT | false | should be “SINGLETON” if only one state is allowed, or other tags if multiple states are allowed | ||
boundary | TEXT | false | can be IP address, VLAN, or any other device name differentiator | ||
segmentation | TEXT | true | zero trust or other network segmentation | ||
state_sysinfo | TEXT | true | any sysinfo or other state data that is specific to this device (mutable) | ||
elaboration | TEXT | true | any elaboration needed for the device (mutable) | ||
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 |
---|---|---|
device_id | PRIMARY KEY | PRIMARY KEY (device_id) |
sqlite_autoindex_device_2 | UNIQUE | UNIQUE (name, state, boundary) |
sqlite_autoindex_device_1 | PRIMARY KEY | PRIMARY KEY (device_id) |
- | CHECK | CHECK(json_valid(state)) |
- | CHECK | CHECK(json_valid(segmentation) OR segmentation IS NULL) |
- | CHECK | CHECK(json_valid(state_sysinfo) OR state_sysinfo IS NULL) |
- | CHECK | CHECK(json_valid(elaboration) OR elaboration IS NULL) |
Indexes
Name | Definition |
---|---|
idx_device__name__state | CREATE INDEX “idx_device__name__state” ON “device”(“name”, “state”) |
sqlite_autoindex_device_2 | UNIQUE (name, state, boundary) |
sqlite_autoindex_device_1 | PRIMARY KEY (device_id) |