dict.js 559 B

1234567891011121314151617181920212223
  1. module.exports = app=>{
  2. const mongoose = app.mongoose;
  3. const Schema = mongoose.Schema;
  4. const Dist = new Schema({
  5. dictCode: String,
  6. dictName: String,
  7. description: String,
  8. type: Number,
  9. dictItems: [{
  10. itemValue: String,
  11. itemText: String,
  12. // letter: String,
  13. sortOrder:String,
  14. status:Number,
  15. description:String
  16. }]
  17. },{
  18. collection:'dict'
  19. });
  20. return mongoose.model("Dict", Dist);
  21. };