Add new endpoint GET /api/v1/planting/stats/global to query planting statistics directly from the database, providing reliable data source for verifying reporting-service statistics. New features: - GlobalPlantingStats: total tree count, order count, amount - StatusDistribution: breakdown by order status (PAID to MINING_ENABLED) - TodayStats: daily statistics with tree count, order count, amount Implementation: - Pure additive changes, no modifications to existing code - Read-only aggregate queries using Prisma aggregate/groupBy - No database schema changes required 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| controllers | ||
| dto | ||
| guards | ||
| api.module.ts | ||
| index.ts | ||