mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-05 00:54:52 +01:00
12 lines
282 B
TypeScript
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;
|
|
}
|