rwadurian/backend/services/reward-service/prisma
hailin 8cea0e7998 fix(reward): change sourceOrderId to sourceOrderNo string type
Fixes BigInt conversion error when consuming planting.order.paid events.
The orderId from planting-service is a string format like PLT1765391584505Q0Q6QD,
not a numeric value.

Changes:
- reward-source.vo.ts: sourceOrderId (bigint) → sourceOrderNo (string)
- reward-calculation.service.ts: updated all method signatures
- reward-application.service.ts: updated distributeRewards params
- event-consumer.controller.ts: removed BigInt() conversion
- prisma schema: changed column type to VarChar(50)
- mapper/repository: updated field names accordingly
- Removed incompatible prisma.config.ts (Prisma 7.x format)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 11:12:58 -08:00
..
migrations fix(reward): change sourceOrderId to sourceOrderNo string type 2025-12-10 11:12:58 -08:00
schema.prisma fix(reward): change sourceOrderId to sourceOrderNo string type 2025-12-10 11:12:58 -08:00
seed.ts feat(reward): 补全10种认种奖励分配规则 2025-12-07 09:19:20 -08:00