summaryrefslogtreecommitdiff
path: root/src/api/models/bbs-thread.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/models/bbs-thread.ts')
-rw-r--r--src/api/models/bbs-thread.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/api/models/bbs-thread.ts b/src/api/models/bbs-thread.ts
new file mode 100644
index 0000000000..a92157c6f4
--- /dev/null
+++ b/src/api/models/bbs-thread.ts
@@ -0,0 +1,13 @@
+import * as mongo from 'mongodb';
+import db from '../../db/mongodb';
+
+const collection = db.get('bbs_threads');
+
+export default collection as any; // fuck type definition
+
+export type IBbsThread = {
+ _id: mongo.ObjectID;
+ created_at: Date;
+ title: string;
+ user_id: mongo.ObjectID;
+};