Adventure Labs Logo
Scout Docs

Artifacts

Table for storing file artifacts associated with sessions and devices

Column NameData TypeConstraints
idbigintNOT NULL
created_attimestamp with time zoneDEFAULT now() NOT NULL
updated_attimestamp with time zoneDEFAULT now() NOT NULL
file_pathtextNOT NULL
file_size_bytesbigint
session_idbigint
device_idbigintNOT NULL
modalitytext
timestamp_observationtimestamp with time zone
timestamp_observation_endtimestamp with time zoneDEFAULT now() NOT NULL
embedded_attimestamp with time zone
segmented_attimestamp with time zone
tagged_attimestamp with time zone
tracked_attimestamp with time zone
thumbnail_file_pathtext
thumbnail_generated_attimestamp with time zone
proxy_file_pathtext
proxy_generated_attimestamp with time zone
processing_blocked_attimestamp with time zone
processing_blocked_reasontext
uploaded_byuuidFK -> users; stamped from auth.uid() on insert by artifacts_uploaded_by, NULL for device and service uploads, immutable afterwards

Security Policies (RLS)

RLS enabled. Herd scope: Herd from artifacts.device_id → get_herd_id_by_device_id.

Operationhas_herd_ability ability keyOther paths
SELECTmedia.readOwning device API key; approved gateway in herd
INSERTmedia.writeOwning device API key; approved gateway in herd
UPDATEmedia.writeOwning device API key; approved gateway in herd
DELETEmedia.writeOwning device API key; approved gateway in herd

Platform superadmin: FOR ALL bypass where defined.

On this page