stdRation_installSection.js 738 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Created by Zhong on 2018/3/22.
  3. */
  4. /*标准定额库-安装分册章节*/
  5. const mongoose = require("mongoose");
  6. const Schema = mongoose.Schema;
  7. //安装增加费-费用规则
  8. const feeRuleSchema = new Schema({
  9. ID: String,
  10. code: String,
  11. rule: String,
  12. base: String,
  13. feeRate: Number,
  14. labour: Number,
  15. material: Number,
  16. machine: Number,
  17. });
  18. //标准安装增加费-分册章节
  19. const installSectionSchema = new Schema(
  20. {
  21. rationRepId: Number,
  22. ID: String,
  23. feeItemId: String,
  24. name: String,
  25. feeRule: [feeRuleSchema],
  26. seq: Number,
  27. deleted: false,
  28. },
  29. { versionKey: false }
  30. );
  31. mongoose.model("std_ration_lib_installationSection", installSectionSchema, "std_ration_lib_installationSection");