Skip to content

Commit

Permalink
Merge pull request #18 from betagouv/feat--store-daily-kpi
Browse files Browse the repository at this point in the history
Feat: store daily kpi
  • Loading branch information
theolemague authored Nov 26, 2024
2 parents a3e4536 + 320ae14 commit 95114a5
Show file tree
Hide file tree
Showing 9 changed files with 1,083 additions and 1 deletion.
40 changes: 40 additions & 0 deletions process/prisma/migrations/20241126104611_add_kpi/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
-- CreateTable
CREATE TABLE "Kpi" (
"id" TEXT NOT NULL,
"old_id" TEXT NOT NULL,
"date" TIMESTAMP(3) NOT NULL,
"available_benevolat_mission_count" INTEGER NOT NULL,
"available_volontariat_mission_count" INTEGER NOT NULL,
"available_benevolat_given_by_partner_place_count" INTEGER NOT NULL,
"available_volontariat_given_by_partner_place_count" INTEGER NOT NULL,
"available_benevolat_attributed_by_api_place_count" INTEGER NOT NULL,
"available_volontariat_attributed_by_api_place_count" INTEGER NOT NULL,
"percentage_benevolat_given_by_partner_places" DOUBLE PRECISION NOT NULL,
"percentage_volontariat_given_by_partner_places" DOUBLE PRECISION NOT NULL,
"percentage_benevolat_attributed_by_api_places" DOUBLE PRECISION NOT NULL,
"percentage_volontariat_attributed_by_api_places" DOUBLE PRECISION NOT NULL,
"benevolat_print_mission_count" INTEGER NOT NULL,
"volontariat_print_mission_count" INTEGER NOT NULL,
"benevolat_click_mission_count" INTEGER NOT NULL,
"volontariat_click_mission_count" INTEGER NOT NULL,
"benevolat_apply_mission_count" INTEGER NOT NULL,
"volontariat_apply_mission_count" INTEGER NOT NULL,
"benevolat_account_mission_count" INTEGER NOT NULL,
"volontariat_account_mission_count" INTEGER NOT NULL,
"benevolat_print_count" INTEGER NOT NULL,
"volontariat_print_count" INTEGER NOT NULL,
"benevolat_click_count" INTEGER NOT NULL,
"volontariat_click_count" INTEGER NOT NULL,
"benevolat_apply_count" INTEGER NOT NULL,
"volontariat_apply_count" INTEGER NOT NULL,
"benevolat_account_count" INTEGER NOT NULL,
"volontariat_account_count" INTEGER NOT NULL,

CONSTRAINT "Kpi_pkey" PRIMARY KEY ("id")
);

-- CreateIndex
CREATE UNIQUE INDEX "Kpi_old_id_key" ON "Kpi"("old_id");

-- CreateIndex
CREATE UNIQUE INDEX "Kpi_date_key" ON "Kpi"("date");
Loading

0 comments on commit 95114a5

Please sign in to comment.