mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-22 23:59:08 +03:00
9 lines
No EOL
256 B
JavaScript
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); |