Skip to content

UserTotpRecoveryCode

UserTotpRecoveryCode Schema

Description: One single-use recovery code for a confirmed TOTP enrollment.

Stored bcrypt-hashed (same helper as passwords); the plaintext is shown
exactly once, at enrollment. ``used_on`` marks consumption — rows are
kept for audit rather than deleted.

Properties

Name Type Description
id Integer No description
user_id Integer No description
code_hash String(60) No description
used_on DateTime (Optional) No description
created_on DateTime No description

Relationships

Relationship Name Type
user User