compleRation_installSection.js 827 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Zhong
  6. * @date 2018/10/23
  7. * @version
  8. */
  9. /*
  10. * 补充定额库用户新增安装增加费分册章节
  11. *
  12. *
  13. * */
  14. const mongoose = require('mongoose');
  15. const Schema = mongoose.Schema;
  16. //安装增加费-费用规则
  17. const feeRuleSchema = new Schema({
  18. ID: String,
  19. code: String,
  20. rule: String,
  21. base: String,
  22. feeRate: Number,
  23. labour: Number,
  24. material: Number,
  25. machine: Number
  26. });
  27. //补充安装增加费-分册章节
  28. const installSectionSchema = new Schema({
  29. userId: String,
  30. compilationId: String,
  31. ID: String,
  32. feeItemId: String,
  33. name: String,
  34. feeRule: [feeRuleSchema],
  35. deleted: false
  36. }, {versionKey: false});
  37. mongoose.model('complementary_ration_installationSection', installSectionSchema, 'complementary_ration_installationSection');