|
@@ -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 }, // 栏目id
|
|
column_id: { type: String, required: true, maxLength: 500 }, // 栏目id
|
|
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 }, // 来源
|