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:
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Reference in New Issue
Block a user