14 lines
337 B
SQL
14 lines
337 B
SQL
select
|
|
tm.id as responsible_member_id,
|
|
tm.tenant_id,
|
|
tm.user_id,
|
|
tm.role,
|
|
tm.status,
|
|
tm.created_at
|
|
from public.tenant_members tm
|
|
where tm.tenant_id = (
|
|
select owner_id from public.patient_intake_requests
|
|
where id = '54daa09a-b2cb-4a0b-91aa-e4cea1915efe'
|
|
)
|
|
and tm.user_id = '824f125c-55bb-40f5-a8c4-7a33618b91c7'
|
|
limit 10; |