]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/models/video/video-channel-share-interface.ts
Federate video update
[github/Chocobozzz/PeerTube.git] / server / models / video / video-channel-share-interface.ts
CommitLineData
d7d5611c 1import * as Bluebird from 'bluebird'
d8465018
C
2import * as Sequelize from 'sequelize'
3import { AccountInstance } from '../account/account-interface'
4import { VideoChannelInstance } from './video-channel-interface'
5
6export namespace VideoChannelShareMethods {
d7d5611c 7 export type LoadAccountsByShare = (videoChannelId: number) => Bluebird<AccountInstance[]>
d8465018
C
8}
9
10export interface VideoChannelShareClass {
d7d5611c 11 loadAccountsByShare: VideoChannelShareMethods.LoadAccountsByShare
d8465018
C
12}
13
14export interface VideoChannelShareAttributes {
15 accountId: number
16 videoChannelId: number
17}
18
19export interface VideoChannelShareInstance
20 extends VideoChannelShareClass, VideoChannelShareAttributes, Sequelize.Instance<VideoChannelShareAttributes> {
21 id: number
22 createdAt: Date
23 updatedAt: Date
24
25 Account?: AccountInstance
26 VideoChannel?: VideoChannelInstance
27}
28
29export interface VideoChannelShareModel
30 extends VideoChannelShareClass, Sequelize.Model<VideoChannelShareInstance, VideoChannelShareAttributes> {}