add analytics (#162)

This commit is contained in:
KM Koushik
2025-05-11 23:34:21 +10:00
committed by GitHub
parent be7f030d75
commit b5ebd002e5
20 changed files with 1031 additions and 418 deletions

View File

@@ -0,0 +1,10 @@
-- CreateTable
CREATE TABLE "CumulatedMetrics" (
"teamId" INTEGER NOT NULL,
"domainId" INTEGER NOT NULL,
"delivered" BIGINT NOT NULL DEFAULT 0,
"hardBounced" BIGINT NOT NULL DEFAULT 0,
"complained" BIGINT NOT NULL DEFAULT 0,
CONSTRAINT "CumulatedMetrics_pkey" PRIMARY KEY ("teamId","domainId")
);