Adventure Labs Logo
Scout Docs

Events

Table for storing individual events sent by devices with media and location data

Column NameData TypeConstraints
idbigintNOT NULL
inserted_attimestamp with time zoneDEFAULT timezone('utc'::text, now()) NOT NULL
messagetext
media_urltext
altitudedouble precisionDEFAULT 0 NOT NULL
headingdouble precisionDEFAULT 0 NOT NULL
media_typepublic.media_typeDEFAULT 'image' NOT NULL
device_idbigintNOT NULL
timestamp_observationtimestamp with time zoneDEFAULT timezone('utc'::text, now()) NOT NULL
is_publicbooleanDEFAULT false NOT NULL
locationextensions.geography(Point,4326)DEFAULT '0101000020E610000000000000000000000000000000000000'
earthranger_urltext
file_pathtext
session_idbigint

Security Policies (RLS)

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

  • Read Access: Device API key that owns the event OR users with view role in same herd
  • Create/Update/Delete: Device API key that owns the event OR users with edit role in same herd

On this page