std_ration_lib_map.js 699 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * 定额库数据模型
  3. *
  4. * @author CaiAoLin
  5. * @date 2017/8/1
  6. * @version
  7. */
  8. import mongoose from "mongoose";
  9. let Schema = mongoose.Schema;
  10. let collectionName = 'std_ration_lib_map';
  11. let modelSchema = {
  12. // 自增id
  13. ID: {
  14. type: Number,
  15. index: true
  16. },
  17. // 展示名称
  18. dispName: String,
  19. // app类型
  20. appType: Number,
  21. // 编办id
  22. compilationId: {
  23. type: String,
  24. index: true
  25. },
  26. descr: String,
  27. // 是否被删除
  28. deleted: Boolean
  29. };
  30. let model = mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));
  31. export {model as default, collectionName as collectionName};