- Replace Stripe automatic payouts with manual admin-processed bank transfers - Add banking information fields (IBAN, bank name, account holder) to User model - Implement manual payout workflow: pending → approved → processing → completed - Add comprehensive admin interface for payout review and processing - Update Payout model with manual processing fields and workflow methods - Add transfer reference tracking and rejection/failure handling - Consolidate all migration fragments into clean "create" migrations - Add comprehensive documentation for manual payout workflow - Fix Event payout_status enum definition and database column issues This addresses France's lack of Stripe Global Payouts support by implementing a complete manual bank transfer workflow while maintaining audit trails and proper admin controls. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
536 B
Ruby
21 lines
536 B
Ruby
class CreateEarnings < ActiveRecord::Migration[8.0]
|
|
def change
|
|
create_table :earnings do |t|
|
|
t.integer :amount_cents
|
|
t.integer :fee_cents
|
|
t.integer :status
|
|
t.string :stripe_payout_id
|
|
|
|
t.integer :net_amount_cents
|
|
|
|
t.references :event, null: false, foreign_key: false, index: true
|
|
t.references :user, null: false, foreign_key: false, index: true
|
|
t.references :order, null: false, foreign_key: false, index: true
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :earnings, :status
|
|
end
|
|
end
|