akf-forum/models/Ban.js

9 lines
No EOL
256 B
JavaScript

const mongoose = require("mongoose")
const schema = new mongoose.Schema({
ip: { type: String, unique: true },
reason: { type: String, default: "No reason given" },
authorID: { type: String }
});
module.exports = mongoose.model('ban', schema);