rwadurian/backend/services/planting-service/prisma/migrations
hailin e5e2793337 feat(planting): add payment reliability improvements
## wallet-service
- Add freeze/confirm/unfreeze API endpoints for planting deduction
- Add deductFrozen method to wallet-account aggregate
- Add PLANT_FREEZE and PLANT_UNFREEZE ledger entry types
- Add idempotency check in deductForPlanting
- Fix test files to include accountSequence parameter

## planting-service
- Add PaymentCompensation model and migration
- Add payment-compensation.repository.ts
- Add payment-compensation.service.ts (background job for retry)
- Add HTTP retry mechanism with exponential backoff
- Refactor payOrder to use freeze → transaction → confirm flow
- Create compensation record on unfreeze failure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 06:31:54 -08:00
..
20241204000000_init feat(db): add Prisma migrations for wallet-service and planting-service 2025-12-09 20:30:23 -08:00
20241210000000_add_outbox feat(planting): implement Outbox Pattern with consumer acknowledgment (B方案) 2025-12-09 21:32:16 -08:00
20241210100000_add_payment_compensation feat(planting): add payment reliability improvements 2025-12-10 06:31:54 -08:00
migration_lock.toml chore(prisma): add missing migration_lock.toml files 2025-12-09 21:39:20 -08:00