diff --git a/db/migrations/008_user_gear.sql b/db/migrations/008_user_gear.sql new file mode 100644 index 0000000..0db7512 --- /dev/null +++ b/db/migrations/008_user_gear.sql @@ -0,0 +1,8 @@ +-- Additive only. Per-user owned equipment: which brewers the Brews page should offer +-- (subset of the shared brew-method keys) and the user's grinders (free-text names). +CREATE TABLE user_gear ( + user_id uuid PRIMARY KEY REFERENCES users(id) ON DELETE CASCADE, + brewers jsonb NOT NULL DEFAULT '[]', + grinders jsonb NOT NULL DEFAULT '[]', + updated_at timestamptz NOT NULL DEFAULT now() +); diff --git a/public/brews.html b/public/brews.html index 319f829..fc2e9b3 100644 --- a/public/brews.html +++ b/public/brews.html @@ -107,8 +107,12 @@ > + >