import_logs.js 612 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Created by zhang on 2019/12/27.
  3. */
  4. const mongoose = require('mongoose');
  5. let Schema = mongoose.Schema;
  6. let collectionName = 'import_logs';
  7. let modelSchema = {
  8. // 日志类型
  9. key: {type: String, index: true},
  10. // 日志简单内容
  11. content: String,
  12. // 关联用户id
  13. userID: String,
  14. // 费用定额Id
  15. compilationID: String,
  16. // 状态
  17. status:String,
  18. // 建设项目ID
  19. projectID: Array,
  20. // 创建时间
  21. create_time: Number,
  22. errorMsg:""
  23. };
  24. mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));