mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-25 21:10:40 +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); |