bills_unitprice_feature_lib.js 953 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Created by Tony on 2021/9/10.
  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. compilationId: String,
  15. compilationName: String,
  16. feature: {
  17. basicKeyOptions: {
  18. type: [Schema.Types.Mixed],
  19. default: []
  20. },
  21. basicMappings:{
  22. type: [Schema.Types.Mixed],
  23. default: []
  24. },
  25. factorMappings: {
  26. type: [Schema.Types.Mixed],
  27. default: []
  28. }
  29. }
  30. },
  31. {versionKey: false}
  32. );
  33. mongoose.model("std_bills_unitprice_feature_lib", project_feature_lib,"std_bills_unitprice_feature_lib");