diff options
Diffstat (limited to 'util/oldModels/ReadState.ts')
-rw-r--r-- | util/oldModels/ReadState.ts | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/util/oldModels/ReadState.ts b/util/oldModels/ReadState.ts deleted file mode 100644 index 9c4fb323..00000000 --- a/util/oldModels/ReadState.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { PublicMember } from "./Member"; -import { Schema, model, Types, Document } from "mongoose"; -import db from "../util/Database"; - -export interface ReadState extends Document { - message_id: string; - channel_id: string; - user_id: string; - last_message_id?: string; - last_pin_timestamp?: Date; - mention_count: number; - manual: boolean; -} - -export const ReadStateSchema = new Schema({ - message_id: String, - channel_id: String, - user_id: String, - last_message_id: String, - last_pin_timestamp: Date, - mention_count: Number, - manual: Boolean, -}); - -// @ts-ignore -export const ReadStateModel = db.model<ReadState>("ReadState", ReadStateSchema, "readstates"); |