]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/models/user/user-video-rate-interface.ts
Add this context to instance model functions
[github/Chocobozzz/PeerTube.git] / server / models / user / user-video-rate-interface.ts
CommitLineData
e02643f3
C
1import * as Sequelize from 'sequelize'
2
3export namespace UserVideoRateMethods {
69818c93 4 export type LoadCallback = (err: Error, userVideoRateInstance: UserVideoRateInstance) => void
e02643f3
C
5 export type Load = (userId, videoId, transaction, callback) => void
6}
7
8export interface UserVideoRateClass {
9 load: UserVideoRateMethods.Load
10}
11
12export interface UserVideoRateAttributes {
13 type: string
14}
15
69818c93 16export interface UserVideoRateInstance extends UserVideoRateClass, UserVideoRateAttributes, Sequelize.Instance<UserVideoRateAttributes> {
e02643f3
C
17 id: number
18 createdAt: Date
19 updatedAt: Date
20}
21
22export interface UserVideoRateModel extends UserVideoRateClass, Sequelize.Model<UserVideoRateInstance, UserVideoRateAttributes> {}