aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video-abuse-interface.ts
blob: 9b77fc6f5907ee66aacaad42b03c5aab7148dc47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import * as Sequelize from 'sequelize'

export namespace VideoAbuseMethods {
  export type toFormatedJSON = () => void

  export type ListForApi = (start, count, sort, callback) => void
}

export interface VideoAbuseClass {
  listForApi: VideoAbuseMethods.ListForApi
}

export interface VideoAbuseAttributes {
  reporterUsername: string
  reason: string
}

export interface VideoAbuseInstance extends Sequelize.Instance<VideoAbuseAttributes> {
  id: number
  createdAt: Date
  updatedAt: Date
}

export interface VideoAbuseModel extends VideoAbuseClass, Sequelize.Model<VideoAbuseInstance, VideoAbuseAttributes> {}