- Add migration 052 to update marketplace_orders CHECK constraint:
'pending' → 'pending_payment' (matches ORDER_STATUS config)
- Fix Payrexx webhook setting invalid 'paid' status on service
appointments — use APPOINTMENT_STATUS.CONFIRMED instead
- Fix appointment pay route referencing non-existent 'approved' status
and setting invalid 'paid' — use APPOINTMENT_STATUS.COMPLETED
- Use APPOINTMENT_STATUS constants instead of PAYMENT_STATUS for
appointment status updates (type safety)
These mismatches would cause CHECK constraint violations at runtime
when creating marketplace orders or processing payment webhooks.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>