Skip to content

Commit

Permalink
#87 fix: chatRoom 대체키 수정
Browse files Browse the repository at this point in the history
id -> Long 타입
token -> String 타입
  • Loading branch information
rivkode committed Jun 10, 2024
1 parent e19424e commit a4adcec
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
public class ChatRoom {
@Id
@Column(name = "chat_room_id")
private String id;
private Long id;

private String chatRoomToken;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "create_user_id", nullable = false)
Expand All @@ -27,8 +29,9 @@ public class ChatRoom {


@Builder
public ChatRoom(String id, User createUser, User attendUser, String name) {
public ChatRoom(Long id, String chatRoomToken, User createUser, User attendUser, String name) {
this.id = id;
this.chatRoomToken = chatRoomToken;
this.createUser = createUser;
this.attendUser = attendUser;
this.name = name;
Expand Down

0 comments on commit a4adcec

Please sign in to comment.