Skip to content

Commit

Permalink
Update comment.entity.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoDora authored Nov 7, 2023
1 parent c5e3a05 commit fc3a8a8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/comments/entities/comment.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ export class Comment {

@ManyToOne(() => User)
@JoinColumn({ name: 'user_id' })
userId: User;
user: User;

@Column({ name: 'user_id' })
userId: number;

@ManyToOne(() => Board)
@JoinColumn({ name: 'board_id' })
boardId: Board;
board: Board;

@Column({ name: 'board_id' })
boardId: number;

@Column()
content: string;
Expand Down

0 comments on commit fc3a8a8

Please sign in to comment.