'use strict'; module.exports = app => { const mongoose = app.mongoose; const Schema = mongoose.Schema; const SysRoleSchema = new Schema({ name: { type: String }, status: { type: String }, roleMenu: { type: String }, }); return mongoose.model('sysRole', SysRoleSchema, 'sys_role'); };