bills_unitprice_feature_lib.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 bills_unit_price_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. // type: [Schema.Types.Mixed],
  18. // default: {}
  19. // },
  20. feature: {
  21. basicKeyOptions: {
  22. type: [Schema.Types.Mixed],
  23. default: []
  24. },
  25. basicMappings:{
  26. type: [Schema.Types.Mixed],
  27. default: []
  28. },
  29. factorMappings: {
  30. type: [Schema.Types.Mixed],
  31. default: []
  32. }
  33. }
  34. },
  35. {versionKey: false}
  36. );
  37. mongoose.model("std_bills_unitprice_feature_lib", bills_unit_price_feature_lib,"std_bills_unitprice_feature_lib");