budgeteer/postgres/schema/0002_budgets.sql
2021-12-11 21:55:33 +00:00

10 lines
273 B
SQL

-- +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;