2023-02-03 02:53:11 +00:00
|
|
|
CREATE TABLE users (
|
|
|
|
id SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
email VARCHAR(320) NOT NULL,
|
2023-02-03 15:48:31 +00:00
|
|
|
|
|
|
|
totp_enabled INTEGER NOT NULL,
|
|
|
|
totp_verified INTEGER NOT NULL,
|
|
|
|
totp_base32 VARCHAR(1024) NOT NULL,
|
|
|
|
totp_auth_url VARCHAR(1024) NOT NULL
|
|
|
|
);
|
|
|
|
CREATE INDEX idx_users_email ON users(email);
|