Prototype owner-only administrator account management

This commit is contained in:
Quintine committed 2026-09-29 22:46:33 +10:00
1 parent ac8742c829
commit 882d006b3c
24 files changed
+3438 -15

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
CREATE TABLE `admin_account_operations` (
`operation_id` text PRIMARY KEY NOT NULL,
`actor_admin_id` text NOT NULL,
`request_hash` text NOT NULL,
`target_admin_id` text NOT NULL,
`action` text NOT NULL,
`name` text NOT NULL,
`role` text NOT NULL,
`enabled` integer NOT NULL,
`created_at` integer NOT NULL,
`updated_at` integer NOT NULL,
CONSTRAINT "admin_account_operations_action" CHECK("admin_account_operations"."action" IN ('provision','role','disable'))
);
--> statement-breakpoint
ALTER TABLE `admin_audit` ADD `reason` text;