Fix schema
This commit is contained in:
10
postgres/schema/0005_accounts.sql
Normal file
10
postgres/schema/0005_accounts.sql
Normal file
@ -0,0 +1,10 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE accounts (
|
||||
id uuid DEFAULT uuid_generate_v4() PRIMARY KEY,
|
||||
budget_id uuid NOT NULL REFERENCES budgets (id) ON DELETE CASCADE,
|
||||
name varchar(50) NOT NULL,
|
||||
on_budget boolean DEFAULT TRUE NOT NULL
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE accounts;
|
Reference in New Issue
Block a user