🐛 fix Event model

This commit is contained in:
Flam3rboy 2021-02-21 22:45:26 +01:00
parent de5009cdad
commit beb269f9c2
4 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ export interface Event {
guild_id?: bigint; guild_id?: bigint;
user_id?: bigint; user_id?: bigint;
channel_id?: bigint; channel_id?: bigint;
created_at?: number; created_at?: Date;
event: EVENT; event: EVENT;
data?: any; data?: any;
} }

View File

@ -10,7 +10,7 @@ exports.EventSchema = new mongoose_1.Schema({
guild_id: mongoose_1.Types.Long, guild_id: mongoose_1.Types.Long,
user_id: mongoose_1.Types.Long, user_id: mongoose_1.Types.Long,
channel_id: mongoose_1.Types.Long, channel_id: mongoose_1.Types.Long,
created_at: { type: Number, required: true }, created_at: { type: Date, required: true },
event: { type: String, required: true }, event: { type: String, required: true },
data: Object, data: Object,
}); });

View File

@ -1 +1 @@
{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../src/models/Event.ts"],"names":[],"mappings":";;;;;;AAYA,uCAA0D;AAC1D,gEAAkC;AAarB,QAAA,WAAW,GAAG,IAAI,iBAAM,CAAC;IACrC,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,OAAO,EAAE,gBAAK,CAAC,IAAI;IACnB,UAAU,EAAE,gBAAK,CAAC,IAAI;IACtB,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC5C,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvC,IAAI,EAAE,MAAM;CACZ,CAAC,CAAC;AAEH,aAAa;AACA,QAAA,UAAU,GAAG,kBAAE,CAAC,KAAK,CAAgB,OAAO,EAAE,mBAAW,EAAE,QAAQ,CAAC,CAAC"} {"version":3,"file":"Event.js","sourceRoot":"","sources":["../../src/models/Event.ts"],"names":[],"mappings":";;;;;;AAYA,uCAA0D;AAC1D,gEAAkC;AAarB,QAAA,WAAW,GAAG,IAAI,iBAAM,CAAC;IACrC,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,OAAO,EAAE,gBAAK,CAAC,IAAI;IACnB,UAAU,EAAE,gBAAK,CAAC,IAAI;IACtB,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvC,IAAI,EAAE,MAAM;CACZ,CAAC,CAAC;AAEH,aAAa;AACA,QAAA,UAAU,GAAG,kBAAE,CAAC,KAAK,CAAgB,OAAO,EAAE,mBAAW,EAAE,QAAQ,CAAC,CAAC"}

View File

@ -17,7 +17,7 @@ export interface Event {
guild_id?: bigint; guild_id?: bigint;
user_id?: bigint; user_id?: bigint;
channel_id?: bigint; channel_id?: bigint;
created_at?: number; created_at?: Date;
event: EVENT; event: EVENT;
data?: any; data?: any;
} }
@ -28,7 +28,7 @@ export const EventSchema = new Schema({
guild_id: Types.Long, guild_id: Types.Long,
user_id: Types.Long, user_id: Types.Long,
channel_id: Types.Long, channel_id: Types.Long,
created_at: { type: Number, required: true }, created_at: { type: Date, required: true },
event: { type: String, required: true }, event: { type: String, required: true },
data: Object, data: Object,
}); });