bills_template_lib.js 584 B

123456789101112131415161718192021
  1. /**
  2. * Created by zhang on 2018/7/12.
  3. */
  4. //清单模板库
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. const oprSchema = require('../all_schemas/opr_schema');
  8. const stdBillsTemplate_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. deleted: Boolean
  17. },
  18. {versionKey: false}
  19. );
  20. mongoose.model("std_bills_template_lib", stdBillsTemplate_lib,"std_bills_template_lib");