28 lines
852 B
TypeScript
28 lines
852 B
TypeScript
import * as Sequelize from 'sequelize'
|
|
import { AccountInstance } from '../account/account-interface'
|
|
import { VideoInstance } from './video-interface'
|
|
import * as Bluebird from 'bluebird'
|
|
|
|
export namespace VideoShareMethods {
|
|
export type LoadAccountsByShare = (videoChannelId: number) => Bluebird<AccountInstance[]>
|
|
}
|
|
|
|
export interface VideoShareClass {
|
|
loadAccountsByShare: VideoShareMethods.LoadAccountsByShare
|
|
}
|
|
|
|
export interface VideoShareAttributes {
|
|
accountId: number
|
|
videoId: number
|
|
}
|
|
|
|
export interface VideoShareInstance extends VideoShareClass, VideoShareAttributes, Sequelize.Instance<VideoShareAttributes> {
|
|
id: number
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
|
|
Account?: AccountInstance
|
|
Video?: VideoInstance
|
|
}
|
|
|
|
export interface VideoShareModel extends VideoShareClass, Sequelize.Model<VideoShareInstance, VideoShareAttributes> {}
|