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

13 lines
262 B
TypeScript

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