All checks were successful
ci/woodpecker/push/build Pipeline was successful
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
11 lines
283 B
SQL
11 lines
283 B
SQL
CREATE TABLE IF NOT EXISTS tokens (
|
|
uuid UUID PRIMARY KEY,
|
|
token_hash TEXT NOT NULL,
|
|
user_id UUID NOT NULL,
|
|
scopes JSONB NOT NULL DEFAULT '[]',
|
|
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
last_used_at TIMESTAMPTZ,
|
|
revoked_at TIMESTAMPTZ,
|
|
expires_at TIMESTAMPTZ
|
|
);
|