ration_template.js 679 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Created by zhang on 2018/11/26.
  3. */
  4. var mongoose = require('mongoose'),
  5. Schema = mongoose.Schema;
  6. let ration_template = new Schema({
  7. ID:String,
  8. projectID: Number,
  9. rationID:String,
  10. createLocation:Number,//提取位置
  11. templateList:[new Schema({
  12. code:String,
  13. name:String,
  14. type:String,
  15. billsLocation:String,//这个是清单编号
  16. fxID:String,//这个是分项对应的ID
  17. unit:String,
  18. quantity:String,
  19. coe:String,
  20. billID:String//记取位置对应的清单ID
  21. },{ _id: false })]
  22. },{versionKey:false});
  23. mongoose.model('ration_template', ration_template,"ration_template");