-- name: ListPublishTargetsOfRole :many
SELECT * FROM publish_target WHERE site_id = $1 AND role = 'production';

-- name: InsertPublishTarget :one
INSERT INTO publish_target (
    site_id,
    role,
    target_type,
    url,
    target_ref
) VALUES ($1, $2, $3, $4, $5)
RETURNING id;