Skip to content

Commit

Permalink
feat: 스터디 중복 제출로 인해 제출이력이 복수 개 생성되는 문제 (#791)
Browse files Browse the repository at this point in the history
* feat: 스터디 주차정보 및 멤버 ID 컬럼에 대하여 유니크 제약조건 지정

* style: spotless 적용
  • Loading branch information
uwoobeat authored Oct 1, 2024
1 parent efa9a65 commit 76d2a19
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 76d2a19

Please sign in to comment.