Skip to content

Commit

Permalink
refactor: 멤버십 unique constraint 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Sep 3, 2024
1 parent e44cabc commit 2b94e93
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import jakarta.persistence.UniqueConstraint;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Entity
@Getter
@Table(uniqueConstraints = {@UniqueConstraint(columnNames = {"member_id", "recruitment_round_id"})})
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class Membership extends BaseEntity {

Expand Down

0 comments on commit 2b94e93

Please sign in to comment.