refactor(org): rename the default org to org-sys

This commit is contained in:
sam committed 2026-10-05 20:27:46 +11:00
1 parent 64445e0b2b
commit 78aff5ad17
11 files changed
+339 -37

No files matched your search

@@ -39,7 +39,7 @@ SELECT COALESCE(
(SELECT a.org_id FROM org_agents a WHERE a.identity_id = $1),
(SELECT m.org_id FROM memberships m WHERE m.identity_id = $1
ORDER BY m.created_at, m.org_id, m.workspace_id NULLS LAST LIMIT 1),
'default'
'org-sys'
)::text AS org_id;
-- name: EnsureAgentOrgMembership :exec
-- Every agent identity serves its org with the shipped developer role: an