summaryrefslogtreecommitdiff
path: root/src/api/models/channel.ts
blob: c80e84dbc852a3043f813049d42bfaeba0385c35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
};