-- name: GetCashiersByBranch :many
SELECT users.*
FROM branch_cashiers
    JOIN users ON branch_cashiers.user_id = users.id
WHERE branch_cashiers.branch_id = $1;
-- name: GetAllCashiers :many
SELECT users.*,
    branch_id
FROM branch_cashiers
    JOIN users ON branch_cashiers.user_id = users.id;
-- name: GetCashierByID :one
SELECT users.*,
    branch_id
FROM branch_cashiers
    JOIN users ON branch_cashiers.user_id = $1;