stdGlj_lib.js 737 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Created by Zhong on 2018/3/23.
  3. */
  4. const mongoose = require('mongoose');
  5. const Schema = mongoose.Schema;
  6. const oprSchema = require('../all_schemas/opr_schema');
  7. let gjlMapRationLibsSchema = new Schema(
  8. {
  9. ID: Number,
  10. dispName: String
  11. },
  12. {_id: false},
  13. {versionKey: false}
  14. );
  15. let gljMapSchema = new Schema({
  16. deleted: Boolean,
  17. ID: Number,
  18. dispName: String,
  19. appType: String,
  20. creator: String,
  21. createDate: String,
  22. recentOpr: [oprSchema],
  23. rationLibs: [gjlMapRationLibsSchema],
  24. compilationId: String,
  25. compilationName: String
  26. },
  27. {versionKey: false}
  28. );
  29. mongoose.model('std_glj_lib_map', gljMapSchema, 'std_glj_lib_map');