1234567891011121314151617181920 |
- /**
- * Created by zhang on 2019/12/27.
- */
- import mongoose from "mongoose";
- let Schema = mongoose.Schema;
- let collectionName = 'import_logs';
- let modelSchema = {
- // 日志类型
- key: {type: String, index: true},
- // 日志内容
- userID: String,
- // 关联用户id
- status:String,
- // 创建时间
- create_time: Number,
- errorMsg:""
- };
- mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));
|