std_over_height_lib.js 539 B

123456789101112131415161718192021222324
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Zhong
  6. * @date 2019/3/5
  7. * @version
  8. */
  9. const mongoose = require('mongoose');
  10. const Schema = mongoose.Schema;
  11. const oprSchema = require('../all_schemas/opr_schema');
  12. const overHeightLib = new Schema({
  13. ID: {type: String, index: true},
  14. name: String,
  15. creator: String,
  16. createDate: Number,
  17. recentOpr: [oprSchema],
  18. list: {
  19. type: Schema.Types.Mixed,
  20. default: []
  21. }
  22. }, {versionKey: false});
  23. mongoose.model('std_over_height_lib', overHeightLib, 'std_over_height_lib');