From f920803002e5cac5c6f18dede4d5802b40cc923d Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 19 Feb 2021 15:34:52 +0100 Subject: :wrench: build --- dist/models/Ban.d.ts | 10 ++++++++++ dist/models/Ban.js | 17 +++++++++++++++++ dist/models/Ban.js.map | 1 + 3 files changed, 28 insertions(+) create mode 100644 dist/models/Ban.d.ts create mode 100644 dist/models/Ban.js create mode 100644 dist/models/Ban.js.map (limited to 'dist/models') diff --git a/dist/models/Ban.d.ts b/dist/models/Ban.d.ts new file mode 100644 index 00000000..2f6399d7 --- /dev/null +++ b/dist/models/Ban.d.ts @@ -0,0 +1,10 @@ +/// +import { Schema, Document } from "mongoose"; +export interface Ban extends Document { + user_id: bigint; + guild_id: bigint; + ip: string; + reason?: string; +} +export declare const BanSchema: Schema, import("mongoose").Model>, undefined>; +export declare const BanModel: import("mongoose").Model; 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 diff --git a/dist/models/Ban.js.map b/dist/models/Ban.js.map new file mode 100644 index 00000000..eb06d54e --- /dev/null +++ b/dist/models/Ban.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ban.js","sourceRoot":"","sources":["../../src/models/Ban.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA0D;AAC1D,gEAAkC;AASrB,QAAA,SAAS,GAAG,IAAI,iBAAM,CAAC;IACnC,OAAO,EAAE,EAAE,IAAI,EAAE,gBAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC7C,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC9C,MAAM,EAAE,MAAM;IACd,EAAE,EAAE,MAAM;CACV,CAAC,CAAC;AAEH,aAAa;AACA,QAAA,QAAQ,GAAG,kBAAE,CAAC,KAAK,CAAM,KAAK,EAAE,iBAAS,EAAE,MAAM,CAAC,CAAC"} \ No newline at end of file -- cgit 1.5.1