-- name: GetUser :one
SELECT * FROM users
WHERE username = $1 LIMIT 1;

-- name: CreateUser :one
INSERT INTO users (
  "user", created_at, updated_at, username, "password"
) VALUES (
  $1, $2, $3, $4, $5
)
RETURNING *;

-- name: UpdateUser :exec
UPDATE users
SET 
	updated_at = $2,
	username = $3,
	"password" = $4
	
WHERE "user" = $1;
