rwadurian/backend/services/reporting-service/src
hailin 8c29603f5a fix(reporting-service): use field-level @unique for statsDate in schema
Root cause: @@unique([field], name: "xxx") requires { xxx: { field } } syntax
in findUnique/upsert, but code used { field } directly.

Fix: Change to @unique(map: "uk_realtime_stats_date") on the field itself.
This keeps the same database index name while allowing { statsDate } syntax.

No migration needed - only Prisma client type generation changes.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 21:38:13 -08:00
..
api feat(admin-web): 添加面对面结算明细列表功能 2026-01-06 20:40:12 -08:00
application feat(admin-web): 添加面对面结算明细列表功能 2026-01-06 20:40:12 -08:00
config refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
domain feat(reporting): 实现 Dashboard API 完整功能 2025-12-18 00:31:08 -08:00
infrastructure fix(reporting-service): use field-level @unique for statsDate in schema 2026-01-06 21:38:13 -08:00
shared refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
app.module.ts feat(reporting): 实现 Dashboard API 完整功能 2025-12-18 00:31:08 -08:00
main.ts fix(reporting-service): 启动 Kafka 微服务消费者以记录真实活动 2025-12-19 21:50:36 -08:00