kinda working
This commit is contained in:
14
sql/queries/users.sql
Normal file
14
sql/queries/users.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- name: CreateUser :exec
|
||||
INSERT INTO users (id, created_at, updated_at, name, api_key)
|
||||
VALUES (
|
||||
?,
|
||||
?,
|
||||
?,
|
||||
?,
|
||||
?
|
||||
);
|
||||
--
|
||||
|
||||
-- name: GetUserByAPIKey :one
|
||||
SELECT * FROM users WHERE api_key = ?;
|
||||
--
|
||||
Reference in New Issue
Block a user