Add Den organizations, org permissions, and template sharing surfaces (#1172)

* Add Den org auth model and template APIs

Wire Better Auth organizations with TypeId-backed schema and migrations, enforce owner/admin org permissions, and add org-scoped template create/list/delete endpoints. Simplify the Den org dashboard UX and update Docker dev packaging paths for the ee apps/packages layout.

* Add manual-safe org migration SQL

Provide a Vitess-compatible version of the organization migration without statement-breakpoint markers or unsupported IF NOT EXISTS column syntax so operators can run it directly in SQL consoles.

---------

Co-authored-by: src-opn <src-opn@users.noreply.github.com>
This commit is contained in:
Source Open
2026-03-25 18:30:50 -07:00
committed by GitHub
parent ea226be40a
commit 21d3b443a7
40 changed files with 4176 additions and 508 deletions

View File

@@ -19,6 +19,7 @@
"@openwork-ee/den-db": "workspace:*",
"@openwork-ee/utils": "workspace:*",
"@daytonaio/sdk": "^0.150.0",
"better-call": "^1.1.8",
"better-auth": "^1.4.18",
"cors": "^2.8.5",
"dotenv": "^16.4.5",