2017-05-22 13:58:25 -05:00
|
|
|
import * as Sequelize from 'sequelize'
|
|
|
|
|
|
|
|
export namespace UserVideoRateMethods {
|
2017-06-10 15:15:25 -05:00
|
|
|
export type LoadCallback = (err: Error, userVideoRateInstance: UserVideoRateInstance) => void
|
2017-05-22 13:58:25 -05:00
|
|
|
export type Load = (userId, videoId, transaction, callback) => void
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UserVideoRateClass {
|
|
|
|
load: UserVideoRateMethods.Load
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UserVideoRateAttributes {
|
|
|
|
type: string
|
|
|
|
}
|
|
|
|
|
2017-06-10 15:15:25 -05:00
|
|
|
export interface UserVideoRateInstance extends UserVideoRateClass, UserVideoRateAttributes, Sequelize.Instance<UserVideoRateAttributes> {
|
2017-05-22 13:58:25 -05:00
|
|
|
id: number
|
|
|
|
createdAt: Date
|
|
|
|
updatedAt: Date
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UserVideoRateModel extends UserVideoRateClass, Sequelize.Model<UserVideoRateInstance, UserVideoRateAttributes> {}
|