Adventure Labs Logo
Scout Docs

Product Numbers

Concrete product numbers/SKUs/revisions; the natural key referenced by parts

Column NameData TypeConstraints
product_numbertextNOT NULL, PRIMARY KEY
product_idbigintNOT NULL, FK -> products
nametextOptional display name, non-blank when set
gtintextunique when set (GS1 GTIN-8/12/13/14)
revisiontext
notestext
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

parts.product_number is a foreign key into this table.

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