polycule-connect/polyculeconnect/migrations/1_tokens.up.sql

10 lines
310 B
MySQL
Raw Normal View History

2024-10-19 14:21:04 +00:00
CREATE TABLE refresh_token (
id TEXT NOT NULL PRIMARY KEY,
client_id TEXT NOT NULL,
user_id TEXT NOT NULL,
scopes blob NOT NULL, -- list of strings, json-encoded
auth_time timestamp NOT NULL,
FOREIGN KEY(client_id) REFERENCES client(id),
FOREIGN KEY(user_id) REFERENCES user(id)
);