Adventure Labs Logo
Scout Docs

Products

Higher-level product lines/families; one manufacturer, many product numbers

Column NameData TypeConstraints
idbigintNOT NULL
manufacturer_idbigintNOT NULL, FK -> manufacturers
nametextNOT NULL, unique per manufacturer (case-insensitive)
descriptiontext
websitetext
categorytext
image_uritextbucket-qualified path product_images/{product_id}/{filename}
lifecyclepublic.entity_lifecycleDEFAULT 'active' NOT NULL
lifecycle_changed_attimestamp with time zoneDEFAULT timezone('utc'::text, now()) NOT NULL
lifecycle_changed_byuuid
lifecycle_reasontext
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