a1b490afa7
Closes #1411
14 lines
280 B
TypeScript
14 lines
280 B
TypeScript
import * as mongo from 'mongodb';
|
|
import db from '../db/mongodb';
|
|
|
|
const PollVote = db.get<IPollVote>('pollVotes');
|
|
export default PollVote;
|
|
|
|
export interface IPollVote {
|
|
_id: mongo.ObjectID;
|
|
createdAt: Date;
|
|
userId: mongo.ObjectID;
|
|
noteId: mongo.ObjectID;
|
|
choice: number;
|
|
}
|