1 import { BelongsTo, Column, CreatedAt, ForeignKey, Model, Table, UpdatedAt } from 'sequelize-typescript'
2 import { AttributesOnly } from '@shared/typescript-utils'
3 import { VideoCommentModel } from '../video/video-comment'
4 import { AbuseModel } from './abuse'
7 tableName: 'commentAbuse',
13 fields: [ 'videoCommentId' ]
17 export class VideoCommentAbuseModel extends Model<Partial<AttributesOnly<VideoCommentAbuseModel>>> {
25 @ForeignKey(() => AbuseModel)
29 @BelongsTo(() => AbuseModel, {
37 @ForeignKey(() => VideoCommentModel)
39 videoCommentId: number
41 @BelongsTo(() => VideoCommentModel, {
47 VideoComment: VideoCommentModel