PeerTube/server/models/account/account-video-rate-interfac...

32 lines
954 B
TypeScript
Raw Normal View History

2017-11-09 10:51:58 -06:00
import * as Sequelize from 'sequelize'
import * as Promise from 'bluebird'
import { VideoRateType } from '../../../shared/models/videos/video-rate.type'
2017-11-23 09:55:13 -06:00
import { AccountInstance } from './account-interface'
2017-11-09 10:51:58 -06:00
export namespace AccountVideoRateMethods {
export type Load = (accountId: number, videoId: number, transaction: Sequelize.Transaction) => Promise<AccountVideoRateInstance>
}
export interface AccountVideoRateClass {
load: AccountVideoRateMethods.Load
}
export interface AccountVideoRateAttributes {
type: VideoRateType
accountId: number
videoId: number
2017-11-23 09:55:13 -06:00
Account?: AccountInstance
2017-11-09 10:51:58 -06:00
}
2017-11-17 08:52:26 -06:00
export interface AccountVideoRateInstance
extends AccountVideoRateClass, AccountVideoRateAttributes, Sequelize.Instance<AccountVideoRateAttributes> {
2017-11-09 10:51:58 -06:00
id: number
createdAt: Date
updatedAt: Date
}
2017-11-17 08:52:26 -06:00
export interface AccountVideoRateModel
extends AccountVideoRateClass, Sequelize.Model<AccountVideoRateInstance, AccountVideoRateAttributes> {}