Adventure Labs Logo
Scout Docs

Chat

Table for storing chat messages between users in herds

Column NameData TypeConstraints
idbigintNOT NULL
created_attimestamp with time zoneDEFAULT now() NOT NULL
messagetextNOT NULL
senderuuid
herd_idbigintNOT NULL

Security Policies (RLS)

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

  • Read Access: Device API keys within same herd OR users with view role in same herd
  • Create: Device API keys within same herd OR users with view role (must set themselves as sender)
  • Update/Delete: Device API keys within same herd OR message owners only

On this page