1234567891011121314151617181920212223 |
- /**
- * Created by Zhong on 2018/3/22.
- */
- /*标准定额章节树*/
- const mongoose = require('mongoose');
- const Schema = mongoose.Schema;
- const rationChapterTreeSchema = new Schema({//章节树 //生成唯一id改为sectionID 改成string
- rationRepId: Number,
- ID: Number,
- ParentID: Number,
- NextSiblingID: Number,
- name: String,
- code: String, // 目录编码
- explanation: String,//说明
- erratumRecord: String, // 勘误记录
- ruleText: String,//计算规则,
- jobContentSituation: String,//工作内容适用情况,ALL适用本项全部定额,PARTIAL适用本项部分定额
- annotationSituation: String,//附注适用情况,ALL适用本项全部定额,PARTIAL适用本项部分定额
- isDeleted: Boolean
- });
- mongoose.model("std_ration_lib_ration_chapter_trees", rationChapterTreeSchema, 'std_ration_lib_ration_chapter_trees');
- mongoose.model("std_ration_lib_ration_chapter_trees_backup", rationChapterTreeSchema, 'std_ration_lib_ration_chapter_trees_backup');
|