Add verified administrator controls and upload abuse limits

This commit is contained in:
2026-10-14 20:37:55 +09:00
parent c3573b605c
commit 3786baf60c
23 changed files with 1941 additions and 22 deletions

View File

@@ -0,0 +1,16 @@
CREATE TABLE `admin_settings` (
`name` text PRIMARY KEY NOT NULL,
`value` text NOT NULL,
`updatedAt` integer NOT NULL
);
--> statement-breakpoint
CREATE TABLE `admin_audit` (
`id` text PRIMARY KEY NOT NULL,
`actorUserId` text,
`action` text NOT NULL,
`details` text NOT NULL,
`createdAt` integer NOT NULL,
FOREIGN KEY (`actorUserId`) REFERENCES `users`(`id`) ON DELETE SET NULL
);
--> statement-breakpoint
CREATE INDEX `admin_audit_created` ON `admin_audit` (`createdAt`);

View File

@@ -85,6 +85,13 @@
"when": 1791771741603,
"tag": "0011_single-room-index",
"breakpoints": true
},
{
"idx": 12,
"version": "6",
"when": 1791973081784,
"tag": "0012_admin_controls",
"breakpoints": true
}
]
}
}