11 lines
203 B
SQL
11 lines
203 B
SQL
-- 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 *; |