budgeteer/postgres/schema/0005_transactions.sql
2021-11-29 22:04:04 +00:00

11 lines
240 B
SQL

-- +goose Up
CREATE TABLE transactions (
id uuid DEFAULT uuid_generate_v4() NOT NULL,
budget_id uuid NOT NULL,
date date NOT NULL,
memo text NULL,
amount decimal(12,2) NOT NULL
);
-- +goose Down
DROP TABLE transactions;