FoundKey/src/models/followed-log.ts
syuilo 5ce6fa67d2 Make migration scripts
and use createdAt instead of _id
2018-04-02 23:19:07 +09:00

12 lines
257 B
TypeScript

import { ObjectID } from 'mongodb';
import db from '../db/mongodb';
const FollowedLog = db.get<IFollowedLog>('followedLogs');
export default FollowedLog;
export type IFollowedLog = {
_id: ObjectID;
createdAt: Date;
userId: ObjectID;
count: number;
};