mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 12:42:44 +01:00
BanModel Update
I edited the ban scheme and added a new value
This commit is contained in:
parent
f920803002
commit
5aee359cf3
1
dist/models/Ban.d.ts
vendored
1
dist/models/Ban.d.ts
vendored
@ -3,6 +3,7 @@ import { Schema, Document } from "mongoose";
|
||||
export interface Ban extends Document {
|
||||
user_id: bigint;
|
||||
guild_id: bigint;
|
||||
executor_id: BigInt;
|
||||
ip: string;
|
||||
reason?: string;
|
||||
}
|
||||
|
1
dist/models/Ban.js
vendored
1
dist/models/Ban.js
vendored
@ -9,6 +9,7 @@ const Database_1 = __importDefault(require("../util/Database"));
|
||||
exports.BanSchema = new mongoose_1.Schema({
|
||||
user_id: { type: mongoose_1.Types.Long, required: true },
|
||||
guild_id: { type: mongoose_1.Types.Long, required: true },
|
||||
executor_id: { type: BigInt, required: true },
|
||||
reason: 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;AASrB,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,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,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"}
|
@ -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?
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user