CREATE TABLE session_tokens ( id VARCHAR(39) NOT NULL PRIMARY KEY, user_id SERIAL NOT NULL REFERENCES users(id), expires_on INTEGER NOT NULL );