Adventure Labs Logo
Scout Docs

Devices

Table for storing device information including location, type, and configuration

Column NameData TypeConstraints
idbigintNOT NULL
inserted_attimestamp with time zoneDEFAULT timezone('utc'::text, now()) NOT NULL
created_byuuidNOT NULL
herd_idbigintNOT NULL
nametextNOT NULL
descriptiontextNOT NULL
domain_nametext
altitudedouble precision
headingdouble precision
locationextensions.geography(Point,4326)
video_publisher_tokentext
video_subscriber_tokentext
device_typepublic.device_typeDEFAULT 'unknown' NOT NULL

Security Policies (RLS)

This table has Row Level Security (RLS) enabled with the following policies:

  • Read Access: Device's own API key OR device API keys within same herd OR users with view role in same herd
  • Create/Update/Delete: Users with edit/admin role in same herd

On this page