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,10 @@
-- +goose Up
CREATE TABLE budgets (
id uuid DEFAULT uuid_generate_v4() PRIMARY KEY,
name text NOT NULL,
last_modification timestamp with time zone,
income_category_id uuid NOT NULL REFERENCES categories (id) DEFERRABLE
);
-- +goose Down
DROP TABLE budgets;