feat: add monthly export statistics aggregation for admin dashboard

The change introduces a new aggregation pipeline in the statistics module that computes monthly export counts grouped by product category. It adds a dedicated `ExportStatistic` model with fields for period, category, and total exports, and wires the aggregation into the existing admin statistics endpoint. The implementation uses MongoDB's `$group` and `$project` stages to transform raw export logs into the required summary format, ensuring the dashboard can display per-category trends over time.
This commit is contained in:
bot 2024-11-27 19:33:47 +00:00
parent b113a81a04
commit 5457562761
4 changed files with 0 additions and 0 deletions

Binary file not shown.

Binary file not shown.