|
@@ -6,11 +6,11 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
const NewsSchema = {
|
|
const NewsSchema = {
|
|
col_name: { type: String, required: true, maxLength: 200 },
|
|
col_name: { type: String, required: true, maxLength: 200 },
|
|
title: { type: String, required: true, maxLength: 200 },
|
|
title: { type: String, required: true, maxLength: 200 },
|
|
- introduction: { type: String, required: true, maxLength: 200 },
|
|
+ introduction: { type: String, required: false, maxLength: 200 },
|
|
content: { type: String, required: false },
|
|
content: { type: String, required: false },
|
|
publish_time: { type: String, required: false, maxLength: 200 },
|
|
publish_time: { type: String, required: false, maxLength: 200 },
|
|
publish_unit: { type: String, required: false, maxLength: 200 },
|
|
publish_unit: { type: String, required: false, maxLength: 200 },
|
|
- publisher: { type: String, required: true, maxLength: 200 },
|
|
+ publisher: { type: String, required: false, maxLength: 200 },
|
|
type: { type: String, required: false, maxLength: 200 },
|
|
type: { type: String, required: false, maxLength: 200 },
|
|
url: { type: String, required: false, maxLength: 200 },
|
|
url: { type: String, required: false, maxLength: 200 },
|
|
img_url: { type: String, required: false, maxLength: 200 },
|
|
img_url: { type: String, required: false, maxLength: 200 },
|