sysRoleModel.js 308 B

12345678910111213
  1. 'use strict';
  2. module.exports = app => {
  3. const mongoose = app.mongoose;
  4. const Schema = mongoose.Schema;
  5. const SysRoleSchema = new Schema({
  6. name: { type: String },
  7. status: { type: String },
  8. roleMenu: { type: String },
  9. });
  10. return mongoose.model('sysRole', SysRoleSchema, 'sys_role');
  11. };