stdBills_lib.js 508 B

123456789101112131415161718192021
  1. /**
  2. * Created by Zhong on 2018/3/22.
  3. */
  4. /*清单库编辑器-库*/
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. const oprSchema = require('../all_schemas/opr_schema');
  8. const stdBills_lib = new Schema({
  9. creator: String,
  10. createDate: String,
  11. recentOpr: [oprSchema],
  12. billsLibId: Number,
  13. billsLibName: String,
  14. deleted: Boolean,
  15. libType:String
  16. },
  17. {versionKey: false}
  18. );
  19. mongoose.model('std_bills_lib_list', stdBills_lib);