jormungandr-bite/src/api/models/channel.ts

15 lines
296 B
TypeScript
Raw Normal View History

2017-10-30 02:30:32 -06:00
import * as mongo from 'mongodb';
import db from '../../db/mongodb';
2017-10-31 06:42:11 -06:00
const collection = db.get('channels');
2017-10-30 02:30:32 -06:00
export default collection as any; // fuck type definition
2017-10-31 06:42:11 -06:00
export type IChannel = {
2017-10-30 02:30:32 -06:00
_id: mongo.ObjectID;
created_at: Date;
title: string;
user_id: mongo.ObjectID;
2017-10-31 10:38:19 -06:00
index: number;
2017-10-30 02:30:32 -06:00
};