summaryrefslogtreecommitdiff
path: root/src/models/note-unread.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/note-unread.ts')
-rw-r--r--src/models/note-unread.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/models/note-unread.ts b/src/models/note-unread.ts
deleted file mode 100644
index dd08640d85..0000000000
--- a/src/models/note-unread.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import * as mongo from 'mongodb';
-import db from '../db/mongodb';
-
-const NoteUnread = db.get<INoteUnread>('noteUnreads');
-NoteUnread.createIndex('userId');
-NoteUnread.createIndex('noteId');
-NoteUnread.createIndex(['userId', 'noteId'], { unique: true });
-export default NoteUnread;
-
-export interface INoteUnread {
- _id: mongo.ObjectID;
- noteId: mongo.ObjectID;
- userId: mongo.ObjectID;
- isSpecified: boolean;
-
- _note: {
- userId: mongo.ObjectID;
- };
-}