Denormalized read table with id, event_id, occurred_at, wallet, sats, fee_sats, and amount_eur. Projected on event creation and rebuildable via POST /api/buys/rebuild. Fiat amounts converted to EUR using Frankfurter rates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4 lines
79 B
SQL
4 lines
79 B
SQL
ALTER TABLE buys DROP COLUMN fee_sats;
|
|
--;;
|
|
ALTER TABLE buys DROP COLUMN sats;
|