AcData.js 431 B

1234567891011121314151617
  1. module.exports = app => {
  2. const mongoose = app.mongoose;
  3. const Schema = mongoose.Schema;
  4. const AcDataSchema = new Schema({
  5. uuid: { type: String },
  6. ip: { type: String },
  7. referer: { type: String },
  8. type: { type: String },
  9. updated: { type: Number },
  10. token: { type: String },
  11. userAgent: { type: String },
  12. _acData: Schema.Types.Mixed
  13. });
  14. return mongoose.model('AcData', AcDataSchema);
  15. }