-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from betagouv/feat--store-daily-kpi
Feat: store daily kpi
- Loading branch information
Showing
9 changed files
with
1,083 additions
and
1 deletion.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
process/prisma/migrations/20241126104611_add_kpi/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
Oops, something went wrong.