Skip to content

Commit

Permalink
[add] #48 Drawer Entity 수정 - 요일 column 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRivaski committed Oct 1, 2023
1 parent 620f898 commit 257b764
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion src/main/java/com/example/exitmedserver/pill/entity/Drawer.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,42 @@ public class Drawer {
@Column(name = "comment")
private String comment;

@Column(name = "monday", columnDefinition = "TINYINT")
private boolean monday;

@Column(name = "tuesday", columnDefinition = "TINYINT")
private boolean tuesday;

@Column(name = "wednesday", columnDefinition = "TINYINT")
private boolean wednesday;

@Column(name = "thursday", columnDefinition = "TINYINT")
private boolean thursday;

@Column(name = "friday", columnDefinition = "TINYINT")
private boolean friday;

@Column(name = "saturday", columnDefinition = "TINYINT")
private boolean saturday;

@Column(name = "sunday", columnDefinition = "TINYINT")
private boolean sunday;

@Builder
public Drawer(Integer id, String userId, Long pillItemSequence, Date finalDate, String dosageCycle, String comment) {
public Drawer(Integer id, String userId, Long pillItemSequence, Date finalDate, String dosageCycle, String comment,
boolean monday, boolean tuesday, boolean wednesday, boolean thursday, boolean friday, boolean saturday, boolean sunday) {
this.id = id;
this.userId = userId;
this.pillItemSequence = pillItemSequence;
this.finalDate = finalDate;
this.dosageCycle = dosageCycle;
this.comment = comment;
this.monday = monday;
this.tuesday = tuesday;
this.wednesday = wednesday;
this.thursday = thursday;
this.friday = friday;
this.saturday = saturday;
this.sunday = sunday;
}
}

0 comments on commit 257b764

Please sign in to comment.