material_replace_lib.js 629 B

1234567891011121314151617181920212223
  1. /**
  2. * Created by zhang on 2018/8/22.
  3. */
  4. //材料替换库
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. const oprSchema = require('../all_schemas/opr_schema');
  8. const material_lib = new Schema({
  9. ID:{type:String,index:true},
  10. creator: String,
  11. createDate: Number,
  12. recentOpr: [oprSchema],
  13. name: String,
  14. compilationId: String,
  15. compilationName: String,
  16. billsLibId:Number,
  17. billsLibName:String,
  18. deleted: Boolean
  19. },
  20. {versionKey: false}
  21. );
  22. mongoose.model("std_material_replace_lib", material_lib,"std_material_replace_lib");