iceshrimp-161sh/src/models/followed-log.ts
syuilo 6a3cd68423 Make migration scripts
and use createdAt instead of _id
2018-04-02 23:19:07 +09:00

13 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;
};