users: add note about invitationToken

this is a one time token that is valid until the account is set up.
this is the reason it has no expiry time.
This commit is contained in:
Girish Ramakrishnan
2026-01-17 09:44:43 +01:00
parent ce0024a43c
commit 2b362d8eaf
2 changed files with 3 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ CREATE TABLE IF NOT EXISTS users(
twoFactorAuthenticationEnabled BOOLEAN DEFAULT false,
source VARCHAR(128) DEFAULT "",
role VARCHAR(32),
inviteToken VARCHAR(128) DEFAULT "",
inviteToken VARCHAR(128) DEFAULT "", // one time token until user sets up account
resetToken VARCHAR(128) DEFAULT "",
resetTokenCreationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
active BOOLEAN DEFAULT 1,