1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-14 06:32:36 +01:00
server/dist/models/Ban.js

18 lines
752 B
JavaScript
Raw Normal View History

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 },
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