summary refs log tree commit diff
path: root/dist/models/Ban.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/models/Ban.js')
-rw-r--r--dist/models/Ban.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/dist/models/Ban.js b/dist/models/Ban.js
new file mode 100644

index 00000000..ab05fd9e --- /dev/null +++ b/dist/models/Ban.js
@@ -0,0 +1,17 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BanModel = exports.BanSchema = void 0; +const mongoose_1 = require("mongoose"); +const Database_1 = __importDefault(require("../util/Database")); +exports.BanSchema = new mongoose_1.Schema({ + user_id: { type: mongoose_1.Types.Long, required: true }, + guild_id: { type: mongoose_1.Types.Long, required: true }, + reason: String, + ip: String, +}); +// @ts-ignore +exports.BanModel = Database_1.default.model("Ban", exports.BanSchema, "bans"); +//# sourceMappingURL=Ban.js.map \ No newline at end of file