misskey/src/models/post-watching.ts
2018-03-29 20:32:18 +09:00

12 lines
282 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;
}