整理した
This commit is contained in:
12
src/models/post-watching.ts
Normal file
12
src/models/post-watching.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user