🐛 fix ban Model Schema

This commit is contained in:
Flam3rboy 2021-02-21 22:52:41 +01:00
parent beb269f9c2
commit 0ab57bb6cd
3 changed files with 3 additions and 3 deletions

2
dist/models/Ban.js vendored
View File

@ -9,7 +9,7 @@ const Database_1 = __importDefault(require("../util/Database"));
exports.BanSchema = new mongoose_1.Schema({ exports.BanSchema = new mongoose_1.Schema({
user_id: { type: mongoose_1.Types.Long, required: true }, user_id: { type: mongoose_1.Types.Long, required: true },
guild_id: { type: mongoose_1.Types.Long, required: true }, guild_id: { type: mongoose_1.Types.Long, required: true },
executor_id: { type: BigInt, required: true }, executor_id: { type: mongoose_1.Types.Long, required: true },
reason: String, reason: String,
ip: String, ip: String,
}); });

View File

@ -1 +1 @@
{"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"} {"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,gBAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IACjD,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"}

View File

@ -12,7 +12,7 @@ export interface Ban extends Document {
export const BanSchema = new Schema({ export const BanSchema = new Schema({
user_id: { type: Types.Long, required: true }, user_id: { type: Types.Long, required: true },
guild_id: { type: Types.Long, required: true }, guild_id: { type: Types.Long, required: true },
executor_id: { type: BigInt, required: true }, executor_id: { type: Types.Long, required: true },
reason: String, reason: String,
ip: String, // ? Should we store this in here, or in the UserModel? ip: String, // ? Should we store this in here, or in the UserModel?
}); });