1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-03 04:26:23 +02:00
Files
misskey/src/api/models/channel.ts
syuilo 71c3e11708 wip
2017-11-01 01:38:19 +09:00

15 lines
296 B
TypeScript

import * as mongo from 'mongodb';
import db from '../../db/mongodb';
const collection = db.get('channels');
export default collection as any; // fuck type definition
export type IChannel = {
_id: mongo.ObjectID;
created_at: Date;
title: string;
user_id: mongo.ObjectID;
index: number;
};