-- name: CreateBonusMultiplier :exec
INSERT INTO bonus (multiplier, balance_cap)
VALUES ($1, $2);

-- name: GetBonusMultiplier :many
SELECT id, multiplier
FROM bonus;

-- name: GetBonusBalanceCap :many
SELECT id, balance_cap
FROM bonus;

-- name: UpdateBonusMultiplier :exec
UPDATE bonus
SET multiplier = $1,
    balance_cap = $2
WHERE id = $3;