CREATE TABLE users (
    id SERIAL NOT NULL PRIMARY KEY,
    email VARCHAR(320) NOT NULL,

    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);