2021-02-19 15:34:52 +01:00
|
|
|
"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 },
|
2021-02-21 12:24:02 +01:00
|
|
|
executor_id: { type: BigInt, required: true },
|
2021-02-19 15:34:52 +01:00
|
|
|
reason: String,
|
|
|
|
ip: String,
|
|
|
|
});
|
|
|
|
// @ts-ignore
|
|
|
|
exports.BanModel = Database_1.default.model("Ban", exports.BanSchema, "bans");
|
|
|
|
//# sourceMappingURL=Ban.js.map
|