BanModel Update

I edited the ban scheme and added a new value
This commit is contained in:
Intevel ツ
2021-02-21 12:24:02 +01:00
parent f920803002
commit 5aee359cf3
4 changed files with 5 additions and 1 deletions
+2
View File
@@ -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?
});