dyno-bot/Dyno-datafactory-develop/models/WebLog.js
2020-09-12 19:08:48 +01:00

16 lines
480 B
JavaScript

'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const weblogSchema = new Schema({
guild: { type: String, required: true, index: true },
user: { type: Object, required: true },
userid: { type: String, index: true },
action: { type: String, required: true },
ipAddress: { type: String },
createdAt: { type: Date, default: Date.now },
}, { strict: false });
module.exports = { name: 'WebLog', schema: weblogSchema }