BanModel Update
I edited the ban scheme and added a new value
This commit is contained in:
@@ -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?
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user