CREATE TABLE codes_3fa ( id SERIAL NOT NULL PRIMARY KEY, code VARCHAR(10) NOT NULL UNIQUE, user_id SERIAL NOT NULL REFERENCES users(id), expires_on BIGINT NOT NULL );