♻️ Normalize data
This commit is contained in:
9
packages/models/src/answer.ts
Normal file
9
packages/models/src/answer.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { Answer as AnswerFromPrisma } from 'db'
|
||||
|
||||
export type Answer = Omit<AnswerFromPrisma, 'resultId' | 'createdAt'>
|
||||
|
||||
export type Stats = {
|
||||
totalViews: number
|
||||
totalStarts: number
|
||||
completionRate: number
|
||||
}
|
Reference in New Issue
Block a user