DataOptionLog.js 575 B

12345678910111213141516171819202122232425
  1. /**
  2. * Created by Administrator on 2015/4/15.
  3. * 数据操作记录
  4. */
  5. var mongoose = require('mongoose');
  6. var shortid = require('shortid');
  7. var Schema = mongoose.Schema;
  8. var DataOptionLogSchema = new Schema({
  9. _id: {
  10. type: String,
  11. unique: true,
  12. 'default': shortid.generate
  13. },
  14. date: { type: Date, default: Date.now },
  15. fileName : { type : String },
  16. path : { type : String },
  17. logs : String
  18. });
  19. var DataOptionLog = mongoose.model("DataOptionLog",DataOptionLogSchema);
  20. module.exports = DataOptionLog;