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

15 lines
441 B
JavaScript

'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const warningSchema = new Schema({
guild: { type: String, required: true, index: true },
user: { type: Object, required: true },
mod: { type: Object, required: false },
reason: { type: String },
createdAt: { type: Date, default: Date.now, expires: '14d' },
});
module.exports = { name :'Warning', schema: warningSchema }