|
@@ -1,11 +1,9 @@
|
|
'use strict';
|
|
'use strict';
|
|
const Schema = require('mongoose').Schema;
|
|
const Schema = require('mongoose').Schema;
|
|
const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
-const { Secret } = require('naf-framework-mongoose/lib/model/schema');
|
|
|
|
|
|
|
|
|
|
|
|
const NewsSchema = {
|
|
const NewsSchema = {
|
|
- column_name: { type: String, required: true, maxLength: 500 },
|
|
|
|
column_id: { type: String, required: true, maxLength: 500 },
|
|
column_id: { type: String, required: true, maxLength: 500 },
|
|
title: { type: String, required: true, maxLength: 500 },
|
|
title: { type: String, required: true, maxLength: 500 },
|
|
orgin: { type: String, required: true, maxLength: 500 },
|
|
orgin: { type: String, required: true, maxLength: 500 },
|
|
@@ -21,4 +19,4 @@ schema.plugin(metaPlugin);
|
|
module.exports = app => {
|
|
module.exports = app => {
|
|
const { mongoose } = app;
|
|
const { mongoose } = app;
|
|
return mongoose.model('News', schema, 'record_news');
|
|
return mongoose.model('News', schema, 'record_news');
|
|
-};
|
|
+};
|