feat: add DB migrations for fee rules and records tables (Closes #41) #79

Merged
shahondin1624 merged 1 commits from feature/issue-41-db-migrations-for-fee-rules-and-records into main 2026-04-07 12:04:21 +02:00
Owner

Summary

  • Creates mv_fee_rules table: year_from, base_rate, family_rules_json, inactive_rule, created_at/by
  • Creates mv_fee_records table: member_id, year, amount, rule_snapshot_json, manuell_angepasst, paid, payment_date, notes
  • Unique constraint on (member_id, year) to prevent duplicate fee records
  • Indexes on year, paid status for efficient querying

Closes #41

## Summary - Creates `mv_fee_rules` table: year_from, base_rate, family_rules_json, inactive_rule, created_at/by - Creates `mv_fee_records` table: member_id, year, amount, rule_snapshot_json, manuell_angepasst, paid, payment_date, notes - Unique constraint on (member_id, year) to prevent duplicate fee records - Indexes on year, paid status for efficient querying Closes #41
shahondin1624 added 1 commit 2026-04-07 12:04:17 +02:00
Create mv_fee_rules (year_from, base_rate, family_rules_json,
inactive_rule) and mv_fee_records (member_id, year, amount,
rule_snapshot_json, manuell_angepasst, paid, payment_date, notes)
with unique constraint on (member_id, year).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
shahondin1624 merged commit eb08bda580 into main 2026-04-07 12:04:21 +02:00
shahondin1624 deleted branch feature/issue-41-db-migrations-for-fee-rules-and-records 2026-04-07 12:04:21 +02:00
Sign in to join this conversation.