]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/videos/video-change-ownership.model.ts
Reorganize shared models
[github/Chocobozzz/PeerTube.git] / shared / models / videos / video-change-ownership.model.ts
1 import { Account } from '../actors'
2 import { Video } from './video.model'
3
4 export interface VideoChangeOwnership {
5 id: number
6 status: VideoChangeOwnershipStatus
7 initiatorAccount: Account
8 nextOwnerAccount: Account
9 video: Video
10 createdAt: Date
11 }
12
13 export const enum VideoChangeOwnershipStatus {
14 WAITING = 'WAITING',
15 ACCEPTED = 'ACCEPTED',
16 REFUSED = 'REFUSED'
17 }