mirror of
https://gitee.com/doramart/DoraCMS.git
synced 2024-12-02 12:17:48 +08:00
26 lines
538 B
JavaScript
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;
|
|
|