diff options
Diffstat (limited to 'server/models/video/video-abuse-interface.ts')
-rw-r--r-- | server/models/video/video-abuse-interface.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/models/video/video-abuse-interface.ts b/server/models/video/video-abuse-interface.ts index 4b7f2a2ec..f3e32f79c 100644 --- a/server/models/video/video-abuse-interface.ts +++ b/server/models/video/video-abuse-interface.ts | |||
@@ -1,5 +1,7 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | 2 | ||
3 | import { PodInstance } from '../pod' | ||
4 | |||
3 | // Don't use barrel, import just what we need | 5 | // Don't use barrel, import just what we need |
4 | import { VideoAbuse as FormatedVideoAbuse } from '../../../shared/models/video-abuse.model' | 6 | import { VideoAbuse as FormatedVideoAbuse } from '../../../shared/models/video-abuse.model' |
5 | 7 | ||
@@ -17,12 +19,15 @@ export interface VideoAbuseClass { | |||
17 | export interface VideoAbuseAttributes { | 19 | export interface VideoAbuseAttributes { |
18 | reporterUsername: string | 20 | reporterUsername: string |
19 | reason: string | 21 | reason: string |
22 | videoId: string | ||
20 | } | 23 | } |
21 | 24 | ||
22 | export interface VideoAbuseInstance extends VideoAbuseClass, VideoAbuseAttributes, Sequelize.Instance<VideoAbuseAttributes> { | 25 | export interface VideoAbuseInstance extends VideoAbuseClass, VideoAbuseAttributes, Sequelize.Instance<VideoAbuseAttributes> { |
23 | id: number | 26 | id: number |
24 | createdAt: Date | 27 | createdAt: Date |
25 | updatedAt: Date | 28 | updatedAt: Date |
29 | |||
30 | Pod: PodInstance | ||
26 | } | 31 | } |
27 | 32 | ||
28 | export interface VideoAbuseModel extends VideoAbuseClass, Sequelize.Model<VideoAbuseInstance, VideoAbuseAttributes> {} | 33 | export interface VideoAbuseModel extends VideoAbuseClass, Sequelize.Model<VideoAbuseInstance, VideoAbuseAttributes> {} |