mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 13:14:06 +01:00
18 lines
767 B
JavaScript
18 lines
767 B
JavaScript
"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 },
|
|
executor_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
|