mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-03 23:49:20 +09:00
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;
|
|
postId: mongo.ObjectID;
|
|
choice: number;
|
|
}
|