polycule-connect/polyculeconnect/migrations/1_tokens.up.sql
Melora Hugues f0011e183d
Some checks failed
/ docker-build-only (push) Failing after 34s
/ go-test (push) Failing after 1m4s
Add refresh token flow (#42)
2024-10-19 16:21:04 +02:00

9 lines
310 B
SQL

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)
);