15 lines
476 B
JavaScript
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 }
|