summary refs log tree commit diff
path: root/dist/models
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-19 15:34:52 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-19 15:34:52 +0100
commitf920803002e5cac5c6f18dede4d5802b40cc923d (patch)
tree8bd9b1f07597d9096e6d6e23d6a5d12a56a633a5 /dist/models
parent:sparkles: Ban Model (diff)
downloadserver-f920803002e5cac5c6f18dede4d5802b40cc923d.tar.xz
:wrench: build
Diffstat (limited to 'dist/models')
-rw-r--r--dist/models/Ban.d.ts10
-rw-r--r--dist/models/Ban.js17
-rw-r--r--dist/models/Ban.js.map1
3 files changed, 28 insertions, 0 deletions
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 @@ +/// <reference path="../util/MongoBigInt.d.ts" /> +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<Document<any>, import("mongoose").Model<Document<any>>, undefined>; +export declare const BanModel: import("mongoose").Model<Ban>; 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