12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 'use strict';
- module.exports = app => {
- const { mongoose } = app;
- const { Schema } = mongoose;
- const PageSchema = new Schema({
-
- title: {
- type: String,
- },
-
- date: {
- type: String,
- },
-
- slug: {
- type: String,
- },
-
- annex: {
- type: String,
- },
- annexname: {
- type: String,
- },
-
- content: {
- type: String,
- },
-
- createAt: {
- type: String,
- },
-
- id: {
- type: String,
- },
-
- menu: {
- type: String,
- },
- });
- return mongoose.model('Page', PageSchema);
- };
|