fiddy/docs/bucket-usage-audit.md
2026-02-11 23:45:15 -08:00

2.0 KiB

Bucket Usage Audit (2026-02-11)

What exists

Missing before this change

  • Bucket necessity (no column or API fields)
  • Bucket windowDays (no column or API fields)
  • Bucket usage rules for recurrence/necessity/date window
  • Entry necessity value BOTH (enum was aligned to BOTH)

Endpoints impacted

Notes

  • Tag matching uses bucket_tags and entry_tags join tables.
  • Recurrence flag is entries.is_recurring.
  • occurred_at is date in the DB (not timestamp).
  • windowDays default set to 30 (min 1, max 365).
  • Necessity uses spending_necessity enum with BOTH.