aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/user/user-video-rate-interface.ts
blob: e48869fd22a676d6d6a928579fb6b44f08cc3ffd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import * as Sequelize from 'sequelize'

export namespace UserVideoRateMethods {
  export type LoadCallback = (err: Error, userVideoRateInstance: UserVideoRateInstance) => void
  export type Load = (userId, videoId, transaction, callback) => void
}

export interface UserVideoRateClass {
  load: UserVideoRateMethods.Load
}

export interface UserVideoRateAttributes {
  type: string
}

export interface UserVideoRateInstance extends UserVideoRateClass, UserVideoRateAttributes, Sequelize.Instance<UserVideoRateAttributes> {
  id: number
  createdAt: Date
  updatedAt: Date
}

export interface UserVideoRateModel extends UserVideoRateClass, Sequelize.Model<UserVideoRateInstance, UserVideoRateAttributes> {}