'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: Number,
    },
    type: {
      type: Number,
    },
    uri: {
      type: String,
    },
    pid: {
      type: String,
    },
  });
  return mongoose.model('Menu', MenuSchema);
};