wip
This commit is contained in:
parent
9aed3d21c9
commit
77528f022d
8 changed files with 149 additions and 12 deletions
13
src/api/models/bbs-thread.ts
Normal file
13
src/api/models/bbs-thread.ts
Normal file
|
|
@ -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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue