summary refs log tree commit diff
path: root/src/models/Message.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-13 23:57:02 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-13 23:57:02 +0100
commit52964aed06c879ac31987e4c487de9c66292e0c2 (patch)
tree9dbda022933d8b93e66f2ce5c51e25ba1b0b208e /src/models/Message.ts
parent:bug: export MongooseCache (diff)
downloadserver-52964aed06c879ac31987e4c487de9c66292e0c2.tar.xz
:art: Channel + Member + Message + Role in separate collection
Diffstat (limited to 'src/models/Message.ts')
-rw-r--r--src/models/Message.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/models/Message.ts b/src/models/Message.ts

index 22569d8f..9b3602c4 100644 --- a/src/models/Message.ts +++ b/src/models/Message.ts
@@ -3,6 +3,7 @@ import { ChannelType } from "./Channel"; export interface Message extends Document { id: bigint; + channel_id: bigint; author_id?: bigint; webhook_id?: bigint; application_id: bigint; @@ -188,6 +189,7 @@ const Embed = { export const MessageSchema = new Schema({ id: Types.Long, + channel_id: Types.Long, author_id: Types.Long, webhook_id: Types.Long, application_id: Types.Long,