sysMenuModel.js 361 B

123456789101112131415
  1. 'use strict';
  2. module.exports = app => {
  3. const mongoose = app.mongoose;
  4. const Schema = mongoose.Schema;
  5. const SysMenuSchema = new Schema({
  6. name: { type: String },
  7. address: { type: String },
  8. fid: { type: String },
  9. icon: { type: String },
  10. order: { type: Number },
  11. });
  12. return mongoose.model('sysMenu', SysMenuSchema, 'sys_menu');
  13. };