mirror of https://github.com/Chocobozzz/PeerTube
25 lines
786 B
TypeScript
25 lines
786 B
TypeScript
import * as Sequelize from 'sequelize'
|
|
import * as Promise from 'bluebird'
|
|
|
|
import { VideoRateType } from '../../../shared/models/user-video-rate.model'
|
|
|
|
export namespace UserVideoRateMethods {
|
|
export type Load = (userId: number, videoId: string, 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> {}
|