Rework arcgis integration for arcgis-go changes and table changes

This commit is contained in:
Eli Ribble 2026-02-28 23:26:08 +00:00
parent f19fb0ef2a
commit d4d9749431
No known key found for this signature in database
5 changed files with 903 additions and 795 deletions

View file

@ -2,8 +2,10 @@
-- This file is meant to be re-generated in place and/or deleted at any time.
-- OrgByOauthId
SELECT o.id AS organization_id, o.arcgis_id AS arcgis_id, o.fieldseeker_url AS fieldseeker_url
FROM oauth_token ot
SELECT o.id AS organization_id, aa.id AS arcgis_id, asf.url AS fieldseeker_url
FROM arcgis.oauth_token ot
JOIN user_ u ON ot.user_id = u.id
JOIN organization o ON u.organization_id = o.id
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
WHERE ot.id = $1;

View file

@ -1,6 +1,8 @@
-- OrgByOauthId
SELECT o.id AS organization_id, o.arcgis_id AS arcgis_id, o.fieldseeker_url AS fieldseeker_url
FROM oauth_token ot
SELECT o.id AS organization_id, aa.id AS arcgis_id, asf.url AS fieldseeker_url
FROM arcgis.oauth_token ot
JOIN user_ u ON ot.user_id = u.id
JOIN organization o ON u.organization_id = o.id
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
WHERE ot.id = $1