From 8e952455cd9f066136c93b3b82aa582264f40aa7 Mon Sep 17 00:00:00 2001 From: juancwu Date: Sat, 11 Apr 2026 19:16:40 +0000 Subject: [PATCH] feat: seed categories --- .../db/migrations/00006_seed_categories.sql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 internal/db/migrations/00006_seed_categories.sql diff --git a/internal/db/migrations/00006_seed_categories.sql b/internal/db/migrations/00006_seed_categories.sql new file mode 100644 index 0000000..87084fc --- /dev/null +++ b/internal/db/migrations/00006_seed_categories.sql @@ -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