Table products { name product Indexes { (name) [pk] } } Table organizations { id uuid name text Indexes { (id) [pk] } } Table seats { org_id uuid product text count int Indexes { (org_id, product) [unique] } } Ref: seats.org_id > organizations.id Ref: seats.product > products.name enum product { satellites ci }