feat(db): add identity columns (lastActivity, toolPermissions, TOTP)

This commit is contained in:
SnapOtter
2026-06-13 22:04:14 +08:00
parent 8eefa46981
commit 7ed043ec53
4 changed files with 1012 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
ALTER TABLE "roles" ADD COLUMN "tool_permissions" jsonb;--> statement-breakpoint
ALTER TABLE "sessions" ADD COLUMN "last_activity" timestamp with time zone;--> statement-breakpoint
ALTER TABLE "users" ADD COLUMN "totp_secret" text;--> statement-breakpoint
ALTER TABLE "users" ADD COLUMN "totp_enabled" boolean DEFAULT false NOT NULL;--> statement-breakpoint
ALTER TABLE "users" ADD COLUMN "recovery_codes_hash" text;