]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/models/video/video-share-interface.ts
Add activitypub migration script
[github/Chocobozzz/PeerTube.git] / server / models / video / video-share-interface.ts
CommitLineData
d8465018
C
1import * as Sequelize from 'sequelize'
2import { AccountInstance } from '../account/account-interface'
3import { VideoInstance } from './video-interface'
d7d5611c 4import * as Bluebird from 'bluebird'
d8465018
C
5
6export namespace VideoShareMethods {
d7d5611c 7 export type LoadAccountsByShare = (videoChannelId: number) => Bluebird<AccountInstance[]>
d8465018
C
8}
9
10export interface VideoShareClass {
d7d5611c 11 loadAccountsByShare: VideoShareMethods.LoadAccountsByShare
d8465018
C
12}
13
14export interface VideoShareAttributes {
15 accountId: number
16 videoId: number
17}
18
19export interface VideoShareInstance extends VideoShareClass, VideoShareAttributes, Sequelize.Instance<VideoShareAttributes> {
20 id: number
21 createdAt: Date
22 updatedAt: Date
23
24 Account?: AccountInstance
25 Video?: VideoInstance
26}
27
28export interface VideoShareModel extends VideoShareClass, Sequelize.Model<VideoShareInstance, VideoShareAttributes> {}