app.scan_intake
TableRow level security on
Scans a device could not resolve on the spot (Section 13): kept with the device time until resolved once through app.resolve_scan_intake as Matched, Created or Dismissed.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key; a client may supply its own UUID so an offline scan is recorded once. |
| org_id | uuid | No | Owning org, derived from app.projects on insert; never accepted from the caller and never changed.References app.organizations.id |
| project_id | uuid | No | Project the scan happened on.References app.projects.id |
| scanned_value | text | No | Decoded value exactly as read. |
| symbology | app.scan_symbology | No | Symbology the scanner decoded. |
| scan_mode | app.scan_mode | No | Asset, Credential, Shipment, Inventory or Lookup. |
| scanned_by | uuid | Yes | Person who scanned, set from the session.References app.people.id |
| device_scanned_at | timestamp with time zone | No | When the device scanned, by its clock. |
| resolved_at | timestamp with time zone | Yes | When the scan was resolved; NULL while open. |
| resolved_by | uuid | Yes | Person who resolved it.References app.people.id |
| resolution | app.scan_resolution | Yes | Matched, Created or Dismissed. |
| resolved_subject_table | text | Yes | Table of the record the scan resolved to, such as asset_units; NULL when dismissed. |
| resolved_subject_id | uuid | Yes | Id of the record the scan resolved to; NULL when dismissed. |
| resolution_note | text | Yes | Why the scan was resolved that way; required when dismissed. |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Yes | Person who inserted the row, or null for a platform process. Set by the database.References app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Yes | Person who last changed the row, or null for a platform process. Set by the database.References app.people.id |