Add 2fa db record fields to users table

This commit is contained in:
Johannes Zellner
2018-04-25 16:33:18 +02:00
parent 0a537029bc
commit 9e66adb6d0
2 changed files with 19 additions and 2 deletions

View File

@@ -22,8 +22,10 @@ CREATE TABLE IF NOT EXISTS users(
createdAt VARCHAR(512) NOT NULL,
modifiedAt VARCHAR(512) NOT NULL,
admin INTEGER NOT NULL,
displayName VARCHAR(512) DEFAULT '',
fallbackEmail VARCHAR(512) DEFAULT ""
displayName VARCHAR(512) DEFAULT "",
fallbackEmail VARCHAR(512) DEFAULT "",
twoFactorAuthenticationSecret VARCHAR(128) DEFAULT "",
twoFactorAuthenticationEnabled BOOLEAN DEFAULT false,
PRIMARY KEY(id));