user-lib/migrations/101_token.sql
2023-09-21 13:13:10 -04:00

8 lines
219 B
SQL

CREATE TABLE IF NOT EXISTS "token" (
id SERIAL PRIMARY KEY,
user_id INT NOT NULL,
auth_token TEXT NOT NULL,
refresh_token TEXT NOT NULL,
time_created TIMESTAMPTZ NOT NULL,
last_updated TIMESTAMPTZ NOT NULL
)