feat: implement payout system database schema and models

This commit is contained in:
kbe
2025-09-16 23:52:26 +02:00
parent e5ed1a34dd
commit 0399761fb3
23 changed files with 421 additions and 5 deletions

19
test/fixtures/earnings.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
event: concert_event
user: users(one)
order: paid_order
amount_cents: 9000 # €90.00
fee_cents: 1000 # €10.00
status: pending
stripe_payout_id:
two:
event: winter_gala
user: users(two)
order: expired_order
amount_cents: 4500 # €45.00
fee_cents: 500 # €5.00
status: paid
stripe_payout_id: payout_123