summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--dist/models/Ban.d.ts1
-rw-r--r--dist/models/Ban.js1
-rw-r--r--dist/models/Ban.js.map2
-rw-r--r--src/models/Ban.ts2
4 files changed, 5 insertions, 1 deletions
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 diff --git a/src/models/Ban.ts b/src/models/Ban.ts
index 23fc336c..0d8afd0e 100644 --- a/src/models/Ban.ts +++ b/src/models/Ban.ts
@@ -4,6 +4,7 @@ import db from "../util/Database"; export interface Ban extends Document { user_id: bigint; guild_id: bigint; + executor_id: BigInt, ip: string; reason?: string; } @@ -11,6 +12,7 @@ export interface Ban extends Document { export const BanSchema = new Schema({ user_id: { type: Types.Long, required: true }, guild_id: { type: Types.Long, required: true }, + executor_id: { type: BigInt, required: true }, reason: String, ip: String, // ? Should we store this in here, or in the UserModel? });