|
@@ -8,7 +8,7 @@ const NewsSchema = {
|
|
|
filedir: { type: String, required: false }, // 封面图片
|
|
|
publish_time: { type: String, required: false, maxLength: 200 }, // 发布时间
|
|
|
type: { type: String, required: false, maxLength: 200 }, // 类型 0、会议简介 1、会议日程2、主办方介绍、3、协办方介绍4、专家介绍5、继续再教育申请表6、温馨提示
|
|
|
- status: { type: String, required: false, maxLength: 200 }, // 0、开启1、禁用
|
|
|
+ status: { type: String, required: false, maxLength: 200, default: '0' }, // 0、开启1、禁用
|
|
|
};
|
|
|
|
|
|
const schema = new Schema(NewsSchema, { toJSON: { virtuals: true } });
|