feat: seed categories

This commit is contained in:
juancwu 2026-04-11 19:16:40 +00:00
commit 8e952455cd

View file

@ -0,0 +1,20 @@
-- +goose Up
-- +goose StatementBegin
INSERT INTO categories (id, name, description) VALUES
('housing', 'Housing', 'rent/mortgage, utilities, maintenance'),
('food', 'Food', 'groceries and dining out'),
('transport', 'Transport', 'fuel, transit, car payments, parking'),
('health', 'Health', 'medical, pharmacy, gym'),
('lifestyle', 'Lifestyle', 'entertainment, hobbies, subscriptions'),
('shopping', 'Shopping', 'clothing, electronics, household goods'),
('personal', 'Personal', 'haircuts, gifts, donations'),
('savings_debt', 'Savings & Debt', 'loan payments, savings contributions');
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DELETE FROM categories WHERE id IN (
'housing', 'food', 'transport', 'health',
'lifestyle', 'shopping', 'personal', 'savings_debt'
);
-- +goose StatementEnd