Question Answer
Question Answer
- Contains the correct answers for a corresponding question (
fromAuthor = true
) - Contains the answers given by every user (
fromAuthor = false
)
interface QuestionAnswer {
id?: string
createdAt?: any
questionId?: string
answer?: {
correct?: number
options?:
| boolean[]
| {
[optionIndex: number]: boolean
}
explanations?: {
[optionIndex: number]: string
}
}
userId?: string
fromAuthor?: boolean
}