Fix schema

This commit is contained in:
2021-12-11 21:55:33 +00:00
parent 40a299141d
commit c3a93377d9
14 changed files with 82 additions and 86 deletions

View File

@ -0,0 +1,9 @@
-- +goose Up
CREATE TABLE categories (
id uuid DEFAULT uuid_generate_v4() PRIMARY KEY,
category_group_id uuid NOT NULL REFERENCES category_groups (id) ON DELETE CASCADE,
name varchar(50) NOT NULL
);
-- +goose Down
DROP TABLE categories;