akf-forum/models/Ban.js

10 lines
277 B
JavaScript
Raw Normal View History

2022-08-29 19:31:59 +03:00
const mongoose = require("mongoose")
const schema = new mongoose.Schema({
ip: { type: String, unique: true },
reason: { type: String, default: "No reason given" },
authorID: { type: String }
2022-08-29 19:31:59 +03:00
});
const model = mongoose.model('ban', schema);
module.exports = model;