check vocabulary
This commit is contained in:
@@ -56,6 +56,8 @@ export interface IVocabularyTestRecord extends Document {
|
||||
correctAnswer: string;
|
||||
isCorrect: boolean;
|
||||
}>;
|
||||
invalidated?: boolean;
|
||||
riskFlags?: string[];
|
||||
createdAt: Date;
|
||||
}
|
||||
|
||||
@@ -174,6 +176,8 @@ const VocabularyTestRecordSchema = new Schema<IVocabularyTestRecord>({
|
||||
correctAnswer: { type: String, required: true },
|
||||
isCorrect: { type: Boolean, required: true }
|
||||
}],
|
||||
invalidated: { type: Boolean, default: false },
|
||||
riskFlags: [{ type: String }],
|
||||
createdAt: { type: Date, default: Date.now }
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user