-- CreateUser :exec
INSERT INTO users (
  user_name, display_name, pw_hash, email_address
) VALUES ($1, $2, $3, $4);

-- DeleteUser :exec
DELETE FROM users
WHERE id = $1;

-- UpdateUserPW :exec
UPDATE users 
SET pw_hash = $2
WHERE id = $1;

-- UpdateUserName :exec
UPDATE users
SET user_name = $2
WHERE id = $1;


-- UpdateUserDisplayName :exec
UPDATE users
SET display_name = $2
WHERE id = $1;

-- GetUser :one
SELECT * FROM users 
WHERE id = $1;

-- GetUserByName :one
SELECT * FROM users
WHERE user_name = $1;
