mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-28 15:51:29 +08:00
c85e60f200
* fix(analytics): enforce trustworthy offline statistics Separate immutable counters from point-in-time snapshots, expose incomplete coverage instead of synthetic zeroes, and keep browser analytics result-only. Restore finite Free quota baselines, fail closed for invalid storage quota, reconcile traffic reports fairly, and add production-safe backfill and data-quality diagnostics. * fix(analytics): preserve global backfill totals Group generated hourly backfill rows by their projected values so SQLite cannot resolve output aliases to source organization columns and overwrite cross-organization totals.
1 line
69 B
SQL
1 line
69 B
SQL
CREATE UNIQUE INDEX `org_quotas_org_uniq` ON `org_quotas` (`org_id`); |