1
0
forked from mirror/misskey
mi.moris.day/src/server/api/models/post-watching.ts
2018-03-29 14:48:47 +09:00

13 lines
288 B
TypeScript

import * as mongo from 'mongodb';
import db from '../../../db/mongodb';
const PostWatching = db.get<IPostWatching>('postWatching');
export default PostWatching;
export interface IPostWatching {
_id: mongo.ObjectID;
createdAt: Date;
userId: mongo.ObjectID;
postId: mongo.ObjectID;
}