mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-06-01 07:29:01 +00:00
- Add `user_tenants` system DB migration for many-to-many user-to-org relationship - Add backfill migration to populate existing users into join table - Add `UserTenant` Objection.js system model and register globally - Enforce org membership validation in `TenancyGlobalGuard` (security) - Add `modules/ee/Workspaces` with full CRUD: create, list, delete, build-status - Add `CreateUserTenantOnSignupSubscriber` for backward-compatible signup flow - Register `WorkspacesModule` in `AppModule` API endpoints: GET /workspaces - list all orgs user belongs to POST /workspaces - create new org (async build) GET /workspaces/build/:jobId - poll build job status DELETE /workspaces/:orgId - delete org (owner only) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>