liuyu 4 년 전
부모
커밋
0a7b685f2e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/model/questionnaire.js

+ 2 - 2
app/model/questionnaire.js

@@ -20,8 +20,8 @@ const questionInfo = {
 // 问卷表
 const QuestionnaireSchema = {
   name: { type: String, required: true, maxLength: 200 }, // 问卷名称
-  num: { type: String, required: true, maxLength: 200 }, // 序号
-  type: { type: String, required: true, maxLength: 200 }, // 类型,0-常用问卷,1-非常用问卷,2-教师问卷
+  num: { type: String, required: false, maxLength: 200 }, // 序号
+  type: { type: String, required: false, maxLength: 200 }, // 类型,0-常用问卷,1-非常用问卷,2-教师问卷
   status: { type: String, required: true, maxLength: 200, default: '0' }, // 状态,0-草稿,1-发布,2-禁用
   question: { type: [ questionInfo ], required: false, select: true }, // 问卷
 };