Skip to content

Commit

Permalink
Fix: badge_achievement unique key 추가 (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaewon-pro authored Oct 28, 2024
1 parent 4e4e322 commit 3ef36da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
import static jakarta.persistence.FetchType.LAZY;
import static lombok.AccessLevel.PROTECTED;

@Table(
uniqueConstraints = {
@UniqueConstraint(columnNames = {"badge_id", "member_id"}),
})
@Getter
@Entity(name = "badge_achievement")
@NoArgsConstructor(access = PROTECTED)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE badge_achievement
ADD CONSTRAINT unique_badge_member UNIQUE (badge_id, member_id);

0 comments on commit 3ef36da

Please sign in to comment.