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