13 lines
211 B
MySQL
13 lines
211 B
MySQL
|
-- name: CreateUser :one
|
||
|
INSERT INTO users (id, created_at, updated_at, email)
|
||
|
VALUES (
|
||
|
gen_random_uuid(),
|
||
|
NOW(),
|
||
|
NOW(),
|
||
|
$1
|
||
|
)
|
||
|
RETURNING *;
|
||
|
|
||
|
-- name: DeleteUser :one
|
||
|
DELETE FROM users
|
||
|
RETURNING *;
|