diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-10-30 17:30:32 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-10-30 17:30:32 +0900 |
| commit | 77528f022d2e9f76298331b55303cfc42359c7af (patch) | |
| tree | 043b951c7ab28de28f2f4407b9eab6a0cd834019 /src/api/models | |
| parent | i18n (diff) | |
| download | sharkey-77528f022d2e9f76298331b55303cfc42359c7af.tar.gz sharkey-77528f022d2e9f76298331b55303cfc42359c7af.tar.bz2 sharkey-77528f022d2e9f76298331b55303cfc42359c7af.zip | |
wip
Diffstat (limited to 'src/api/models')
| -rw-r--r-- | src/api/models/bbs-thread.ts | 13 |
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; +}; |