feat(arabot): add updating statistics for outreach groups

This commit is contained in:
smyalygames
2023-03-01 13:03:17 +00:00
parent c55d5ffe93
commit dec6de8398
3 changed files with 100 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
-- CreateTable
CREATE TABLE "StatRole" (
"statId" INTEGER NOT NULL,
"roleId" TEXT NOT NULL,
CONSTRAINT "StatRole_pkey" PRIMARY KEY ("statId")
);
-- AddForeignKey
ALTER TABLE "StatRole" ADD CONSTRAINT "StatRole_statId_fkey" FOREIGN KEY ("statId") REFERENCES "Stat"("id") ON DELETE RESTRICT ON UPDATE CASCADE;