project_feature_lib.js 583 B

12345678910111213141516171819202122
  1. /**
  2. * Created by zhang on 2018/9/3.
  3. */
  4. //工程特征库
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. const oprSchema = require('../all_schemas/opr_schema');
  8. const project_feature_lib = new Schema({
  9. ID:{type:String,index:true},
  10. creator: String,
  11. createDate: Number,
  12. recentOpr: [oprSchema],
  13. name: String,
  14. feature:{
  15. type: [Schema.Types.Mixed],
  16. default: []
  17. }
  18. }, {versionKey: false}
  19. );
  20. mongoose.model("std_project_feature_lib", project_feature_lib,"std_project_feature_lib");