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