From 76d2a198e6b732afd81c42f8a471aad5052a1002 Mon Sep 17 00:00:00 2001 From: Jaehyun Ahn <91878695+uwoobeat@users.noreply.github.com> Date: Tue, 1 Oct 2024 22:20:44 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=8A=A4=ED=84=B0=EB=94=94=20=EC=A4=91?= =?UTF-8?q?=EB=B3=B5=20=EC=A0=9C=EC=B6=9C=EB=A1=9C=20=EC=9D=B8=ED=95=B4=20?= =?UTF-8?q?=EC=A0=9C=EC=B6=9C=EC=9D=B4=EB=A0=A5=EC=9D=B4=20=EB=B3=B5?= =?UTF-8?q?=EC=88=98=20=EA=B0=9C=20=EC=83=9D=EC=84=B1=EB=90=98=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20(#791)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 스터디 주차정보 및 멤버 ID 컬럼에 대하여 유니크 제약조건 지정 * style: spotless 적용 --- .../gdschongik/gdsc/domain/study/domain/AssignmentHistory.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/domain/AssignmentHistory.java b/src/main/java/com/gdschongik/gdsc/domain/study/domain/AssignmentHistory.java index ca6c93fd0..a7384e53c 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/domain/AssignmentHistory.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/domain/AssignmentHistory.java @@ -17,6 +17,8 @@ import jakarta.persistence.Id; import jakarta.persistence.JoinColumn; import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; +import jakarta.persistence.UniqueConstraint; import java.time.LocalDateTime; import lombok.AccessLevel; import lombok.Builder; @@ -26,6 +28,7 @@ @Getter @Entity @NoArgsConstructor(access = AccessLevel.PROTECTED) +@Table(uniqueConstraints = {@UniqueConstraint(columnNames = {"study_detail_id", "member_id"})}) public class AssignmentHistory extends BaseEntity { @Id