std_billsGuidance_items.js 662 B

123456789101112131415161718192021222324252627
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Zhong
  6. * @date 2018/5/29
  7. * @version
  8. */
  9. //清单指引条目
  10. const mongoose = require('mongoose');
  11. const Schema = mongoose.Schema;
  12. const stdBillsGuidanceItems = new Schema({
  13. libID: String,
  14. ID: String, //uuid
  15. ParentID: String,
  16. NextSiblingID: String,
  17. billsID: String, //关联清单的ID
  18. name: String,
  19. comment: String, //备注
  20. type: Number, //0:工作内容 1:定额
  21. rationID: {type: Number, default: null}, //定额类型时
  22. deleted: {type: Boolean, default: false}
  23. }, {versionKey: false});
  24. mongoose.model('std_billsGuidance_items', stdBillsGuidanceItems, 'std_billsGuidance_items');