You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
llll/class_backend/src/models/questionModel.js

10 lines
282 B

import mongoose from 'mongoose';
const QuestionSchema = new mongoose.Schema({
question: { type: String, required: true },
correctAnswer: { type: String, required: true } // 正确答案
});
const Question = mongoose.model('Question', QuestionSchema);
export default Question;