sysDeptModel.js 359 B

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