mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-29 17:28:02 +01:00
feat(arabot): add updating statistics for outreach groups
This commit is contained in:
10
prisma/migrations/20230228200640_stat_role/migration.sql
Normal file
10
prisma/migrations/20230228200640_stat_role/migration.sql
Normal 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;
|
||||
Reference in New Issue
Block a user