make reported user nullable
All checks were successful
delpoy / build-and-deploy (push) Successful in 44s

This commit is contained in:
2023-11-03 18:10:02 +01:00
parent 72eeb59230
commit 81d97380ca
11 changed files with 107 additions and 65 deletions

View File

@@ -56,7 +56,7 @@ export class Report extends Model {
@Column({ type: DataTypes.INTEGER, allowNull: false })
@ForeignKey(() => User)
declare reporter_id: number;
@Column({ type: DataTypes.INTEGER, allowNull: false })
@Column({ type: DataTypes.INTEGER })
@ForeignKey(() => User)
declare reported_id: number;
@Column({ type: DataTypes.INTEGER })