1234567891011121314151617181920212223 |
- /**
- * Created by zhang on 2018/8/22.
- */
- //材料替换库
- const mongoose = require('mongoose');
- const Schema = mongoose.Schema;
- const oprSchema = require('../all_schemas/opr_schema');
- const material_lib = new Schema({
- ID:{type:String,index:true},
- creator: String,
- createDate: Number,
- recentOpr: [oprSchema],
- name: String,
- compilationId: String,
- compilationName: String,
- billsLibId:Number,
- billsLibName:String,
- deleted: Boolean
- },
- {versionKey: false}
- );
- mongoose.model("std_material_replace_lib", material_lib,"std_material_replace_lib");
|