mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-22 20: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); |