|
@@ -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 }, // 问卷
|
|
|
};
|