1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-28 13:38:08 +09:00
hotomoe/src/api/models/bbs-thread.ts
2017-10-30 17:30:32 +09:00

14 lines
285 B
TypeScript

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;
};