mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-28 15:51:29 +08:00
e55ee53496
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.
3 lines
284 B
SQL
3 lines
284 B
SQL
ALTER TABLE `download_tasks` ADD `events` text DEFAULT '[]' NOT NULL;--> statement-breakpoint
|
|
ALTER TABLE `download_tasks` ADD `deleted_at` integer;--> statement-breakpoint
|
|
CREATE INDEX `download_tasks_org_deleted_created_idx` ON `download_tasks` (`org_id`,`deleted_at`,`created_at`); |