Implement assignment import and clear of budget
This commit is contained in:
11
postgres/schema/202112071547_assignments.sql
Normal file
11
postgres/schema/202112071547_assignments.sql
Normal 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;
|
Reference in New Issue
Block a user