Skip to content

Commit

Permalink
Refactor(#235): 블록 인덱스 설정 (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
giwoong01 authored Dec 28, 2024
1 parent d457665 commit b0f15d2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.FetchType;
import jakarta.persistence.Index;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
Expand All @@ -20,6 +22,7 @@
@Entity
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Table(indexes = @Index(name = "idx_dashboard_progress_status", columnList = "dashboard_id, progress, status"))
public class Block extends BaseEntity {

@Enumerated(value = EnumType.STRING)
Expand Down Expand Up @@ -105,5 +108,5 @@ public void updateChallengeStatus(Status status) {
public void sequenceUpdate(int sequence) {
this.sequence = sequence;
}

}

0 comments on commit b0f15d2

Please sign in to comment.