aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/models/user/user-video-rate-interface.ts
blob: 4e6efc01ab7c64c2389dc1355d677060bb730d32 (plain) (tree)
1
2
3
4
5
6
7
                                      
                                   
 
                                                                             
 
                                       
                                                                                                                            






                                          
                     

 
                                                                                                                                         





                                                                                                                                  
import * as Sequelize from 'sequelize'
import * as Promise from 'bluebird'

import { VideoRateType } from '../../../shared/models/videos/video-rate.type'

export namespace UserVideoRateMethods {
  export type Load = (userId: number, videoId: number, transaction: Sequelize.Transaction) => Promise<UserVideoRateInstance>
}

export interface UserVideoRateClass {
  load: UserVideoRateMethods.Load
}

export interface UserVideoRateAttributes {
  type: VideoRateType
}

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

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