Add verified administrator controls and upload abuse limits
This commit is contained in:
16
apps/server/drizzle/0012_admin_controls.sql
Normal file
16
apps/server/drizzle/0012_admin_controls.sql
Normal 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`);
|
||||
Reference in New Issue
Block a user