mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-26 01:56:42 -06:00
14 lines
362 B
TypeScript
14 lines
362 B
TypeScript
import * as mongo from 'mongodb';
|
|
import db from '../db/mongodb';
|
|
|
|
const Following = db.get<IFollowing>('following');
|
|
Following.createIndex(['followerId', 'followeeId'], { unique: true });
|
|
export default Following;
|
|
|
|
export type IFollowing = {
|
|
_id: mongo.ObjectID;
|
|
createdAt: Date;
|
|
deletedAt: Date;
|
|
followeeId: mongo.ObjectID;
|
|
followerId: mongo.ObjectID;
|
|
};
|