Reorganize repo structure and standards references

This commit is contained in:
david committed 2026-06-29 05:03:42 +02:00
1 parent 3cb93a81be
commit be2054274d
5885 files changed
+2588 -195

No files matched your search

@@ -0,0 +1,11 @@
-- Tenant-owned workspace roles. Existing default roles remain global with tenantId NULL.
ALTER TABLE "Role" ADD COLUMN "tenantId" TEXT;
ALTER TABLE "Role" ADD CONSTRAINT "Role_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant"("id") ON DELETE CASCADE ON UPDATE CASCADE;
CREATE INDEX "Role_tenantId_type_idx" ON "Role"("tenantId", "type");
DROP INDEX IF EXISTS "Role_name_key";
CREATE UNIQUE INDEX "Role_tenantId_name_key" ON "Role"("tenantId", "name");
CREATE UNIQUE INDEX "Role_global_name_key" ON "Role"("name") WHERE "tenantId" IS NULL;