Adventure Labs Logo
Scout Docs

Certificates

Table for storing certificates with issuer, expiration and tracking information

Column NameData TypeConstraints
idbigintNOT NULL
created_attimestamp with time zoneDEFAULT now() NOT NULL
issuertextNOT NULL
expirationtimestamp with time zone
typetextNOT NULL
tracking_numbertext
part_idbigint
updated_attimestamp with time zoneDEFAULT now()

Security Policies (RLS)

RLS enabled. Herd scope: Herd from certificates.part_id → get_herd_id_by_part_id (requires part_id).

Operationhas_herd_ability ability keyOther paths
SELECTdevices.read—
INSERTdevices.write—
UPDATEdevices.write—
DELETEdevices.write—

Platform superadmin: FOR ALL bypass where defined.

On this page