|
@@ -8,7 +8,7 @@ const NewsSchema = {
|
|
filedir: { type: String, required: false },
|
|
filedir: { type: String, required: false },
|
|
publish_time: { type: String, required: false, maxLength: 200 },
|
|
publish_time: { type: String, required: false, maxLength: 200 },
|
|
type: { type: String, required: false, maxLength: 200 },
|
|
type: { type: String, required: false, maxLength: 200 },
|
|
- status: { type: String, required: false, maxLength: 200 },
|
|
+ status: { type: String, required: false, maxLength: 200, default: '0' },
|
|
};
|
|
};
|
|
|
|
|
|
const schema = new Schema(NewsSchema, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(NewsSchema, { toJSON: { virtuals: true } });
|