std_bills_lib_lists.js 770 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * 标准清单库数据模型
  3. *
  4. * @author CaiAoLin
  5. * @date 2017/8/3
  6. * @version
  7. */
  8. import mongoose from "mongoose";
  9. let Schema = mongoose.Schema;
  10. let collectionName = 'std_bills_lib_lists';
  11. let modelSchema = {
  12. // 自增id
  13. billsLibId: String,
  14. // 添加信息的管理员
  15. creator: String,
  16. // 创建时间
  17. createDate: String,
  18. // 名称
  19. billsLibName: String,
  20. // 编办id
  21. compilationId: {
  22. type: String,
  23. index: true
  24. },
  25. // 是否被删除
  26. deleted: Boolean,
  27. // 最近操作记录
  28. recentOpr: Schema.Types.Mixed
  29. };
  30. let model = mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));
  31. export {model as default, collectionName as collectionName};