]>
Commit | Line | Data |
---|---|---|
e02643f3 C |
1 | import * as Sequelize from 'sequelize' |
2 | ||
70c065d6 C |
3 | import { PodInstance } from '../pod' |
4 | ||
69818c93 | 5 | // Don't use barrel, import just what we need |
74889a71 | 6 | import { VideoAbuse as FormatedVideoAbuse } from '../../../shared/models/video-abuse.model' |
69818c93 | 7 | |
e02643f3 | 8 | export namespace VideoAbuseMethods { |
69818c93 | 9 | export type toFormatedJSON = () => FormatedVideoAbuse |
e02643f3 | 10 | |
69818c93 C |
11 | export type ListForApiCallback = (err: Error, videoAbuseInstances?: VideoAbuseInstance[], total?: number) => void |
12 | export type ListForApi = (start: number, count: number, sort: string, callback: ListForApiCallback) => void | |
e02643f3 C |
13 | } |
14 | ||
15 | export interface VideoAbuseClass { | |
16 | listForApi: VideoAbuseMethods.ListForApi | |
17 | } | |
18 | ||
19 | export interface VideoAbuseAttributes { | |
20 | reporterUsername: string | |
21 | reason: string | |
70c065d6 | 22 | videoId: string |
e02643f3 C |
23 | } |
24 | ||
69818c93 | 25 | export interface VideoAbuseInstance extends VideoAbuseClass, VideoAbuseAttributes, Sequelize.Instance<VideoAbuseAttributes> { |
e02643f3 C |
26 | id: number |
27 | createdAt: Date | |
28 | updatedAt: Date | |
70c065d6 C |
29 | |
30 | Pod: PodInstance | |
e02643f3 C |
31 | } |
32 | ||
33 | export interface VideoAbuseModel extends VideoAbuseClass, Sequelize.Model<VideoAbuseInstance, VideoAbuseAttributes> {} |