-- name: GetTenantBySlug :one SELECT id, slug, name, preset, locale, timezone, plan_code, subscription_status, billing_customer_id, billing_subscription_id, created_at, updated_at FROM tenants WHERE slug = $1; -- name: ListTenantUsers :many SELECT tenant_id, user_id, role, created_at FROM tenant_users WHERE tenant_id = $1 ORDER BY created_at ASC;