-- name: GetPrice :one
SELECT * FROM billing.prices
WHERE price_id = $1;

-- name: ListPricesByProduct :many
SELECT * FROM billing.prices
WHERE product_id = $1 AND is_active = TRUE
ORDER BY created_at ASC;

-- name: CreatePrice :one
INSERT INTO billing.prices (product_id, currency, unit_amount, recurring_interval, trial_period_days, is_active)
VALUES ($1, $2, $3, $4, $5, TRUE)
RETURNING *;
