2
0

🖐️ Analytics drop off rates

This commit is contained in:
Baptiste Arnaud
2022-01-03 17:39:59 +01:00
parent 1093453c07
commit 6322402c96
38 changed files with 876 additions and 147 deletions

View File

@@ -1,3 +1,9 @@
import { Answer as AnswerFromPrisma } from 'db'
export type Answer = Omit<AnswerFromPrisma, 'resultId'>
export type Answer = Omit<AnswerFromPrisma, 'resultId' | 'createdAt'>
export type Stats = {
totalViews: number
totalStarts: number
completionRate: number
}

View File

@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `updatedAt` on the `Result` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Result" DROP COLUMN "updatedAt";

View File

@@ -112,7 +112,6 @@ model PublicTypebot {
model Result {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @default(now())
typebotId String
typebot Typebot @relation(fields: [typebotId], references: [id], onDelete: Cascade)
answers Answer[]