aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/models/src/videos/change-ownership/video-change-ownership.model.ts
blob: 353db37f0475c44708c9ca34eaa8bd91286bd0cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Account } from '../../actors/index.js'
import { Video } from '../video.model.js'

export interface VideoChangeOwnership {
  id: number
  status: VideoChangeOwnershipStatusType
  initiatorAccount: Account
  nextOwnerAccount: Account
  video: Video
  createdAt: Date
}

export const VideoChangeOwnershipStatus = {
  WAITING: 'WAITING',
  ACCEPTED: 'ACCEPTED',
  REFUSED: 'REFUSED'
} as const

export type VideoChangeOwnershipStatusType = typeof VideoChangeOwnershipStatus[keyof typeof VideoChangeOwnershipStatus]