Adventure Labs Logo
Scout Docs

Product Compatibilities

Maps product families to compatible accessory product numbers

Column NameData TypeConstraints
primary_product_idbigintNOT NULL, PK, FK -> products
roletextNOT NULL, PK
accessory_product_numbertextNOT NULL, PK, FK -> product_numbers
auto_assignbooleanDEFAULT false NOT NULL
inserted_attimestamp with time zoneDEFAULT timezone('utc'::text, now()) NOT NULL

Unique partial index: one auto_assign = true row per (primary_product_id, role).

Security Policies (RLS)

RLS enabled. Scope: Global catalog, same access model as products.

OperationPath
SELECThas_view_role_any_herd, device API key, or platform superadmin
INSERTPlatform superadmin only
UPDATEPlatform superadmin only
DELETEPlatform superadmin only

On this page