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

15 lines
476 B
JavaScript

'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const overrideLogSchema = new Schema({
guild: { type: String, required: true, index: true },
user: { type: Object, required: true },
command: { type: String, required: true, index: true },
message: { type: String, required: true },
createdAt: { type: Date, default: Date.now, expires: '7d' },
});
module.exports = { name: 'OverrideLog', schema: overrideLogSchema }