compleRation_section.js 670 B

12345678910111213141516171819202122232425
  1. /**
  2. * Created by Zhong on 2018/3/22.
  3. */
  4. /*补充定额库-章节树*/
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. //补充定额章节树
  8. const compleRationSectionTreeSchema = new Schema({
  9. //用户名
  10. userId: Number,
  11. //编办
  12. compilationId: String,
  13. //标准定额库
  14. rationRepId: Number,
  15. //名称
  16. name: String,
  17. //是否是同层第一个节点
  18. isFirst: Boolean,
  19. ID: Number,
  20. NextSiblingID: Number,
  21. ParentID: Number,
  22. deleteInfo: deleteSchema
  23. }, {versionKey: false});
  24. mongoose.model('complementary_ration_section_tree', compleRationSectionTreeSchema, 'complementary_ration_section_tree');