docs: update two-factor schema to include id field

This commit is contained in:
Bereket Engida
2025-03-06 21:17:48 +03:00
parent f7edb854af
commit 55cea88c47

View File

@@ -353,6 +353,7 @@ Table: `twoFactor`
<DatabaseTable
fields={[
{ name: "id", type: "string", description: "The id of the two factor authentication.", isPrimaryKey: true },
{ name: "userId", type: "string", description: "The id of the user", isForeignKey: true },
{ name: "secret", type: "string", description: "The secret used to generate the TOTP code.", isOptional: true },
{ name: "backupCodes", type: "string", description: "The backup codes used to recover access to the account if the user loses access to their phone or email.", isOptional: true },