Adventure Labs Logo
Scout Docs

Document Templates

Consistent document categories per locality and issuer

Column NameData TypeConstraints
idbigintNOT NULL
nametextNOT NULL
issuer_idbigintFK -> issuers
categoriestext
localization_idbigintFK -> localizations
uses_expirybooleanDEFAULT false NOT NULL
inserted_attimestamp with time zoneDEFAULT timezone('utc'::text, now()) NOT NULL

Security Policies (RLS)

RLS enabled. Scope: Global, superadmin-managed catalog.

Operationhas_herd_ability ability keyOther paths
SELECT—has_view_role_any_herd (herds.read in any herd), device API key, or superadmin
INSERT—Platform superadmin only
UPDATE—Platform superadmin only
DELETE—Platform superadmin only

Platform superadmin: FOR ALL bypass where defined.

On this page