7 lines
271 B
SQL
7 lines
271 B
SQL
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
|
|
);
|