diff options
Diffstat (limited to 'server/models/video-abuse-interface.ts')
-rw-r--r-- | server/models/video-abuse-interface.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/server/models/video-abuse-interface.ts b/server/models/video-abuse-interface.ts new file mode 100644 index 000000000..9b77fc6f5 --- /dev/null +++ b/server/models/video-abuse-interface.ts | |||
@@ -0,0 +1,24 @@ | |||
1 | import * as Sequelize from 'sequelize' | ||
2 | |||
3 | export namespace VideoAbuseMethods { | ||
4 | export type toFormatedJSON = () => void | ||
5 | |||
6 | export type ListForApi = (start, count, sort, callback) => void | ||
7 | } | ||
8 | |||
9 | export interface VideoAbuseClass { | ||
10 | listForApi: VideoAbuseMethods.ListForApi | ||
11 | } | ||
12 | |||
13 | export interface VideoAbuseAttributes { | ||
14 | reporterUsername: string | ||
15 | reason: string | ||
16 | } | ||
17 | |||
18 | export interface VideoAbuseInstance extends Sequelize.Instance<VideoAbuseAttributes> { | ||
19 | id: number | ||
20 | createdAt: Date | ||
21 | updatedAt: Date | ||
22 | } | ||
23 | |||
24 | export interface VideoAbuseModel extends VideoAbuseClass, Sequelize.Model<VideoAbuseInstance, VideoAbuseAttributes> {} | ||