From 5aee359cf385dca7b19fb9e94761f4b13a3efeb0 Mon Sep 17 00:00:00 2001 From: Intevel ツ <59223342+Intevel@users.noreply.github.com> Date: Sun, 21 Feb 2021 12:24:02 +0100 Subject: BanModel Update I edited the ban scheme and added a new value --- dist/models/Ban.d.ts | 1 + dist/models/Ban.js | 1 + dist/models/Ban.js.map | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'dist/models') diff --git a/dist/models/Ban.d.ts b/dist/models/Ban.d.ts index 2f6399d7..8960ca52 100644 --- a/dist/models/Ban.d.ts +++ b/dist/models/Ban.d.ts @@ -3,6 +3,7 @@ import { Schema, Document } from "mongoose"; export interface Ban extends Document { user_id: bigint; guild_id: bigint; + executor_id: BigInt; ip: string; reason?: string; } diff --git a/dist/models/Ban.js b/dist/models/Ban.js index ab05fd9e..501e1508 100644 --- a/dist/models/Ban.js +++ b/dist/models/Ban.js @@ -9,6 +9,7 @@ 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 }, reason: String, ip: String, }); diff --git a/dist/models/Ban.js.map b/dist/models/Ban.js.map index eb06d54e..8bc13dae 100644 --- a/dist/models/Ban.js.map +++ b/dist/models/Ban.js.map @@ -1 +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 +{"version":3,"file":"Ban.js","sourceRoot":"","sources":["../../src/models/Ban.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA0D;AAC1D,gEAAkC;AAUrB,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,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC7C,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