Explorar o código

作业表新增分数字段

reloaded %!s(int64=5) %!d(string=hai) anos
pai
achega
88e80ababe
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 }, // 分数
 });
 
 // 作业表