feat: add monthly export volume tracking to statistics module

Implement a new aggregation pipeline that computes total export volume per month, grouped by product category and destination region. The change introduces a `monthly_export_stats` collection updated via a scheduled cron job, with indexes on `year_month` and `category` for efficient querying. The statistics module now exposes a `/api/stats/exports/monthly` endpoint returning paginated results sorted by descending volume.
This commit is contained in:
bot
2024-12-17 12:05:07 +00:00
parent 81f5cd09d1
commit cc30ec8ebd
5 changed files with 7 additions and 7 deletions
Binary file not shown.
BIN
View File
Binary file not shown.