sysDictModel.js 329 B

1234567891011121314
  1. 'use strict';
  2. module.exports = app => {
  3. const mongoose = app.mongoose;
  4. const Schema = mongoose.Schema;
  5. const SysDictSchema = new Schema({
  6. key: { type: String },
  7. name: { type: String },
  8. fid: { type: String },
  9. order: { type: Number },
  10. });
  11. return mongoose.model('sysDict', SysDictSchema, 'sys_dict');
  12. };