|
@@ -4,8 +4,11 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
|
|
|
|
|
|
const MaterialSchema = {
|
|
|
+ title: { type: String, required: true, maxLength: 200 },
|
|
|
url: { type: String, required: true, maxLength: 200 },
|
|
|
type: { type: String, required: true, maxLength: 200 },
|
|
|
+ content: { type: String, required: false, maxLength: 2000 },
|
|
|
+ tags: [ String ],
|
|
|
score: { type: String, required: false, maxLength: 200 },
|
|
|
};
|
|
|
|