check vocabulary

This commit is contained in:
2026-05-25 11:25:12 +08:00
parent 4088fbc9e7
commit 1de143740a
6 changed files with 573 additions and 8 deletions

View File

@@ -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 }
});