Skip to content

Commit 904ef24

Browse files
committed
feat: MonthlyRanking 엔티티 추가 및 월별 랭킹 정보 정의
1 parent aaf8cd8 commit 904ef24

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.loopers.domain.ranking;
2+
3+
import com.loopers.infrastructure.converter.YearMonthAttributeConverter;
4+
import jakarta.persistence.*;
5+
import lombok.Getter;
6+
import lombok.NoArgsConstructor;
7+
8+
import java.time.YearMonth;
9+
10+
@Entity
11+
@Getter
12+
@Table(name = "mv_product_rank_monthly")
13+
@NoArgsConstructor(access = lombok.AccessLevel.PROTECTED)
14+
public class MonthlyRanking {
15+
16+
@Id
17+
@GeneratedValue(strategy = GenerationType.IDENTITY)
18+
private Long id;
19+
20+
@Column(name = "monthly_rank")
21+
private int rank;
22+
23+
private Long productId;
24+
25+
private double score;
26+
27+
@Convert(converter = YearMonthAttributeConverter.class)
28+
@Column(name = "month_period")
29+
private YearMonth monthPeriod;
30+
}

0 commit comments

Comments
 (0)