mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-02 05:19:17 -06:00
23 lines
706 B
TypeScript
23 lines
706 B
TypeScript
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> {}
|