Created
February 3, 2023 15:55
-
-
Save dchw/238904b34adc9459280c6ea2a4131d08 to your computer and use it in GitHub Desktop.
Revisions
-
dchw created this gist
Feb 3, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ 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 }