realfan/migrations/00004-create-oauth_tokens-t...

9 lines
253 B
MySQL
Raw Normal View History

CREATE TABLE IF NOT EXISTS oauth_tokens (
id serial PRIMARY KEY,
id_user INTEGER NOT NULL,
cookie VARCHAR(64) UNIQUE NOT NULL,
access_token VARCHAR(128) NOT NULL,
auth_more TEXT NOT NULL,
created_on TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);