Files
carvalho-finances/apps/api/internal/migration/sql/003_recurring_ignores.sql
T
Mlcavalho1andClaude Sonnet 4.6 12e8500827 feat(#19): registro manual de transações e recorrências fixas
Adiciona CRUD manual de transações (income/expense) com filtro mensal, CRUD de
recorrências fixas com verificação mensal de cobertura (±10% por categoria),
endpoint de ignore/unignore e telas Vue para Transações e Configurações.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-26 20:26:48 -03:00

11 lines
435 B
SQL

CREATE TABLE IF NOT EXISTS recurring_ignores (
id SERIAL PRIMARY KEY,
recurring_id INTEGER NOT NULL REFERENCES recurring_expenses (id) ON DELETE CASCADE,
month CHAR(7) NOT NULL, -- YYYY-MM
reason TEXT,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
UNIQUE (recurring_id, month)
);
INSERT INTO schema_migrations (version) VALUES (3) ON CONFLICT DO NOTHING;