feat: add support for creating users and chirps
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- name: CreateChirp :one
|
||||
INSERT INTO chirps (id, created_at, updated_at, body, user_id)
|
||||
VALUES (
|
||||
gen_random_uuid(),
|
||||
NOW(),
|
||||
NOW(),
|
||||
$1,
|
||||
$2
|
||||
)
|
||||
RETURNING *;
|
||||
Reference in New Issue
Block a user