-- name: CreateSubscriptionChange :one INSERT INTO core.subscription_changes (subscription_id, previous_status, new_status, stripe_event_id) VALUES ($1, $2, $3, $4) RETURNING *; -- name: GetSubscriptionChangesBySubscriptionID :many SELECT * FROM core.subscription_changes WHERE subscription_id = $1 ORDER BY changed_at ASC;