summary refs log tree commit diff
path: root/src/models/Ban.ts
diff options
context:
space:
mode:
authorIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-02-21 12:24:02 +0100
committerIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-02-21 12:24:02 +0100
commit5aee359cf385dca7b19fb9e94761f4b13a3efeb0 (patch)
tree9eefd04c764b0e3a9e76d0b34ce01699fde7e2a1 /src/models/Ban.ts
parent:wrench: build (diff)
downloadserver-5aee359cf385dca7b19fb9e94761f4b13a3efeb0.tar.xz
BanModel Update
I edited the ban scheme and added a new value
Diffstat (limited to 'src/models/Ban.ts')
-rw-r--r--src/models/Ban.ts2
1 files changed, 2 insertions, 0 deletions
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? });