mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-17 08:08:15 +09:00
2ebbb70356
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;
|
|
}
|