Newer
Older
percord / dist / models / Ban.js
@Flam3rboy Flam3rboy on 6 Apr 2021 722 bytes :art: Convert id bigint to string
"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: String, required: true },
    guild_id: { type: String, required: true },
    executor_id: { type: String, required: true },
    reason: String,
    ip: String,
});
// @ts-ignore
exports.BanModel = Database_1.default.model("Ban", exports.BanSchema, "bans");
//# sourceMappingURL=Ban.js.map