12345678910111213141516171819202122232425262728293031323334353637383940 |
- 'use strict';
- module.exports = app => {
- const { mongoose } = app;
- const { Schema } = mongoose;
- const MenuSchema = new Schema({
- name: {
- type: String,
- },
- code: {
- type: String,
- },
- id: {
- type: String,
- },
- state: {
- type: String,
- },
- type: {
- type: String,
- },
- uri: {
- type: String,
- },
- pid: {
- type: String,
- },
- en: {
- type: String,
- },
- sort: {
- type: Number,
- },
- pages: {
- type: String,
- },
- // 绑定栏目
- column: { type: Array, required: false },
- });
- return mongoose.model('Menu', MenuSchema);
- };
|