Files
zpan/migrations/0063_user-last-active-at.sql
T
saltbo e55ee53496 refactor(stats): unify audit and fact pipelines
Centralize request audit recording, preserve immutable download-task history, and derive hourly statistics and backfills from the same authoritative sources. Add durable user registration facts so admin deletion no longer destroys signup history.
2026-07-21 23:02:52 -04:00

2 lines
139 B
SQL

ALTER TABLE `user` ADD `last_active_at` integer;--> statement-breakpoint
CREATE INDEX `user_lastActiveAt_idx` ON `user` (`last_active_at`);