2025-11-07 08:34:32 +00:00
|
|
|
-- OrgByOauthId
|
2026-02-28 23:26:08 +00:00
|
|
|
SELECT o.id AS organization_id, aa.id AS arcgis_id, asf.url AS fieldseeker_url
|
|
|
|
|
FROM arcgis.oauth_token ot
|
2025-11-07 08:34:32 +00:00
|
|
|
JOIN user_ u ON ot.user_id = u.id
|
|
|
|
|
JOIN organization o ON u.organization_id = o.id
|
2026-02-28 23:26:08 +00:00
|
|
|
JOIN arcgis.account aa ON aa.id = o.arcgis_account_id
|
|
|
|
|
JOIN arcgis.service_feature asf ON asf.item_id = o.fieldseeker_service_feature_item_id
|
2025-11-07 08:34:32 +00:00
|
|
|
WHERE ot.id = $1
|