import_logs.js 473 B

1234567891011121314151617181920
  1. /**
  2. * Created by zhang on 2019/12/27.
  3. */
  4. import mongoose from "mongoose";
  5. let Schema = mongoose.Schema;
  6. let collectionName = 'import_logs';
  7. let modelSchema = {
  8. // 日志类型
  9. key: {type: String, index: true},
  10. // 日志内容
  11. userID: String,
  12. // 关联用户id
  13. status:String,
  14. // 创建时间
  15. create_time: Number,
  16. errorMsg:""
  17. };
  18. mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));