8 lines
271 B
MySQL
8 lines
271 B
MySQL
|
CREATE TABLE oauth_token (
|
||
|
id SERIAL PRIMARY KEY,
|
||
|
owner_id UUID NOT NULL REFERENCES user_account (id) ON DELETE CASCADE,
|
||
|
token VARCHAR(100) UNIQUE NOT NULL,
|
||
|
created_at TIMESTAMP WITH TIME ZONE NOT NULL,
|
||
|
expires_at TIMESTAMP WITH TIME ZONE NOT NULL
|
||
|
);
|