feat: move totp and passkeys into plugins (C1)

This commit is contained in:
LukeGus committed 2026-09-24 16:57:24 -05:00
1 parent f4f26a9b8b
commit 5c18435105
235 files changed
+22545 -5610

No files matched your search

@@ -0,0 +1,12 @@
-- totp 0001: create_enrollments
-- Generated by termix-plugin migrations. Review before committing.
CREATE TABLE IF NOT EXISTS `p_totp_enrollments` (
`user_id` varchar(255) PRIMARY KEY NOT NULL,
`secret` text,
`pending_secret` text,
`backup_codes` text,
`created_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
`updated_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
);
@@ -0,0 +1,12 @@
-- totp 0001: create_enrollments
-- Generated by termix-plugin migrations. Review before committing.
CREATE TABLE IF NOT EXISTS "p_totp_enrollments" (
"user_id" varchar(255) PRIMARY KEY NOT NULL,
"secret" text,
"pending_secret" text,
"backup_codes" text,
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE
);
+35
View File
@@ -0,0 +1,35 @@
{
"version": 1,
"tables": {
"enrollments": {
"columns": {
"userId": {
"type": "refUser",
"length": 255,
"notNull": true,
"primaryKey": true
},
"secret": {
"type": "encryptedText"
},
"pendingSecret": {
"type": "encryptedText"
},
"backupCodes": {
"type": "encryptedText"
},
"createdAt": {
"type": "timestamp",
"notNull": true,
"defaultNow": true
},
"updatedAt": {
"type": "timestamp",
"notNull": true,
"defaultNow": true
}
},
"indexes": []
}
}
}
@@ -0,0 +1,12 @@
-- totp 0001: create_enrollments
-- Generated by termix-plugin migrations. Review before committing.
CREATE TABLE IF NOT EXISTS "p_totp_enrollments" (
"user_id" text PRIMARY KEY NOT NULL,
"secret" text,
"pending_secret" text,
"backup_codes" text,
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE
);