소스 검색

作业表新增分数字段

reloaded 5 년 전
부모
커밋
88e80ababe
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/model/task.js

+ 1 - 0
app/model/task.js

@@ -14,6 +14,7 @@ const questionInfo = new Schema({
   topic: { type: String, required: false, maxLength: 500 }, // 题目
   answer: { type: String, required: false, maxLength: 500 }, // 答案
   option: { type: [ optionInfo ], select: true }, // 选项
+  score: { type: String, required: false, maxLength: 500 }, // 分数
 });
 
 // 作业表