🐛 fix ban Model Schema
This commit is contained in:
parent
beb269f9c2
commit
0ab57bb6cd
2
dist/models/Ban.js
vendored
2
dist/models/Ban.js
vendored
@ -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,
|
||||||
});
|
});
|
||||||
|
2
dist/models/Ban.js.map
vendored
2
dist/models/Ban.js.map
vendored
@ -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"}
|
@ -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?
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user