Adventure Labs Logo
Scout Docs

Maintenance

Maintenance records for device parts

Column NameData TypeConstraints
idbigintNOT NULL
part_idbigintNOT NULL
timestamp_completiontimestamp with time zoneNOT NULL
descriptiontext
typetext
created_attimestamp with time zoneDEFAULT now() NOT NULL
updated_attimestamp with time zoneDEFAULT now()

Security Policies (RLS)

RLS enabled. Herd scope: Herd from maintenance.part_id → get_herd_id_by_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