From 257b764c7fbb48c020333dda17cc03800eb2c20a Mon Sep 17 00:00:00 2001 From: DrRivaski Date: Sun, 1 Oct 2023 17:48:43 +0900 Subject: [PATCH] =?UTF-8?q?[add]=20#48=20Drawer=20Entity=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20-=20=EC=9A=94=EC=9D=BC=20column=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exitmedserver/pill/entity/Drawer.java | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/example/exitmedserver/pill/entity/Drawer.java b/src/main/java/com/example/exitmedserver/pill/entity/Drawer.java index 86aea07..3cca567 100644 --- a/src/main/java/com/example/exitmedserver/pill/entity/Drawer.java +++ b/src/main/java/com/example/exitmedserver/pill/entity/Drawer.java @@ -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; } }