Skip to content

Commit

Permalink
fix : SQL 예약어 관련 오류 수정
Browse files Browse the repository at this point in the history
- 웨이팅 테이블 필드명 변경 rank -> waiting_number
  • Loading branch information
dlswns2480 committed Dec 21, 2023
1 parent 99e73d0 commit 4ca4fc2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public class Waiting extends BaseEntity {
@Column(name = "waiting_id")
private Long id;

@Column(name = "rank")
private int rank;
@Column(name = "waiting_number")
private int waitingNumber;

@Column(name = "people_count")
private int peopleCount;
Expand All @@ -48,8 +48,8 @@ public class Waiting extends BaseEntity {
private Shop shop;

@Builder
public Waiting(int rank, int peopleCount) {
this.rank = rank;
public Waiting(int waitingNumber, int peopleCount) {
this.waitingNumber = waitingNumber;
this.peopleCount = peopleCount;
this.delayRemainingCount = 2;
}
Expand Down

0 comments on commit 4ca4fc2

Please sign in to comment.