Make sure a report doesn't get deleted upon the deletion of its video
[oweals/peertube.git] / shared / models / videos / abuse / video-abuse.model.ts
1 import { Account } from '../../actors/index'
2 import { VideoConstant } from '../video-constant.model'
3 import { VideoAbuseState } from './video-abuse-state.model'
4
5 export interface VideoAbuse {
6   id: number
7   reason: string
8   reporterAccount: Account
9
10   state: VideoConstant<VideoAbuseState>
11   moderationComment?: string
12
13   video: {
14     id: number
15     name: string
16     uuid: string
17     nsfw: boolean
18     deleted: boolean
19   }
20
21   createdAt: Date
22 }