mirror of
https://github.com/Dvorinka/Bookra.git
synced 2026-06-03 20:13:00 +00:00
11 lines
350 B
SQL
11 lines
350 B
SQL
-- 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;
|