/**
 * Created by Zhong on 2018/3/22.
 */
/*清单库编辑器-清单*/
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const stdBills_bills = new Schema({
            ID: String,
            ParentID: String,
            NextSiblingID: String,
            code: String,
            name: String,
            unit: String,
            ruleText: String,
            engineering: Number, //工程专业，填计算程序工程专业ID
            fixedFlag: Number,  //固定ID
            Expression: String,
            comment: String, //备注，清单精灵处输入
            jobs: [],
            items: [],
            recharge:String,
            billsLibId: {type:Number,index:true},
            sectionInfo: Schema.Types.Mixed,
            deleted: Boolean
    },
    {versionKey: false}
);

mongoose.model('std_bills_lib_bills', stdBills_bills, 'std_bills_lib_bills');