Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
intrn(database): found comment word model
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelo Magtoto committed Oct 15, 2022
1 parent 01b86d1 commit 275871a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions database/models/found_comment_word.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import {
Model,
Table,
Column,
BelongsTo,
ForeignKey
} from "sequelize-typescript"

import ProfanityFilter from "%/models/profanity_filter"
import Comment from "%/models/comment"

@Table({
"paranoid": true,
"timestamps": true
})
export default class FoundCommentWord extends Model {
@ForeignKey(() => Comment)
@Column({
"allowNull": false
})
commentID!: number

@BelongsTo(() => Comment)
comment!: Comment

@ForeignKey(() => ProfanityFilter)
@Column({
"allowNull": false
})
profanityFilterID!: number

@BelongsTo(() => ProfanityFilter)
profanityFilter!: ProfanityFilter
}

0 comments on commit 275871a

Please sign in to comment.