DoraCMS/models/DataOptionLog.js
2015-08-15 20:47:42 +08:00

26 lines
538 B
JavaScript

/**
* Created by Administrator on 2015/4/15.
* 数据操作记录
*/
var mongoose = require('mongoose');
var shortid = require('shortid');
var Schema = mongoose.Schema;
var dataOptionLog = new Schema({
_id: {
type: String,
unique: true,
'default': shortid.generate
},
date: { type: Date, default: Date.now },
fileName : { type : String },
path : { type : String },
logs : String
});
var DataOptionLog = mongoose.model("DataOptionLog",dataOptionLog);
module.exports = DataOptionLog;