Skip to content

Commit

Permalink
Merge pull request #130 from dionisos198/refactor/#129-apply-program-…
Browse files Browse the repository at this point in the history
…index

Refactor: 프로그램 테이블에 index 설정 추가 (#129)
  • Loading branch information
dionisos198 authored Feb 1, 2024
2 parents 4d249b0 + 73342fc commit b0f680e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/tavebalak/OTTify/program/entity/Program.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
Expand All @@ -22,6 +24,7 @@
@Entity
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Getter
@Table(indexes = {@Index(name = "IDX_tm_db_program_id_type", columnList = "tmDbProgramId,type")})
public class Program {

@Id
Expand All @@ -33,7 +36,7 @@ public class Program {
private double averageRating;
private int reviewCount;
private Long tmDbProgramId;

@Enumerated(EnumType.STRING)
private ProgramType type;

Expand Down

0 comments on commit b0f680e

Please sign in to comment.