chirpy_server/sql/queries/refresh_token.sql

11 lines
203 B
MySQL
Raw Normal View History

2024-10-25 23:31:57 +02:00
-- name: CreateRefreshToken :one
INSERT INTO refresh_tokens (token, created_at, updated_at, user_id, expires_at, revoked_at)
VALUES (
$1,
NOW(),
NOW(),
$2,
$3,
NULL
)
RETURNING *;