feat: Added methods for organization

This commit is contained in:
SauravDhakal
2026-03-11 21:47:35 +05:45
parent 6fc494687a
commit 349196b801
24 changed files with 504 additions and 189 deletions

View File

@@ -0,0 +1,15 @@
/*
Warnings:
- The required column `id` was added to the `organization_join_request` table with a prisma-level default value. This is not possible if the table is not empty. Please add this column as optional, then populate it before making it required.
*/
-- DropIndex
DROP INDEX "organization_join_request_userId_orgId_key";
-- AlterTable
ALTER TABLE "organization_join_request" ADD COLUMN "id" TEXT NOT NULL,
ADD CONSTRAINT "organization_join_request_pkey" PRIMARY KEY ("id");
-- CreateIndex
CREATE INDEX "organization_join_request_userId_orgId_idx" ON "organization_join_request"("userId", "orgId");