Skip to content

Commit 7c804ae

Browse files
author
ruiichen
committed
- explicitly no allowNull
1 parent 2df8c0a commit 7c804ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/typescript/models/adminComment.model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ export default class AdminComment extends Model {
1818
id!: string;
1919

2020
@ForeignKey(() => User)
21-
@Column({ type: DataType.INTEGER })
21+
@Column({ type: DataType.INTEGER, allowNull: false })
2222
userId!: number;
2323

2424
@ForeignKey(() => ApplicantRecord)
25-
@Column({ type: DataType.UUID })
25+
@Column({ type: DataType.UUID, allowNull: false })
2626
applicantRecordId!: string;
2727

2828
@Column({ type: DataType.STRING, allowNull: false })

0 commit comments

Comments
 (0)