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,11 @@
-- +goose Up
CREATE TABLE assignments (
id uuid DEFAULT uuid_generate_v4() PRIMARY KEY,
category_id uuid NOT NULL REFERENCES categories (id),
date date NOT NULL,
memo text,
amount decimal(12,2) NOT NULL
);
-- +goose Down
DROP TABLE assignments;