feat(content-ranking): 랭킹 스냅샷 저장소를 추가한다
This commit is contained in:
@@ -18,6 +18,7 @@ create table content_ranking_snapshot (
|
||||
creator_nickname varchar(100) not null comment '스냅샷 생성 시점 크리에이터 닉네임',
|
||||
cover_image_url varchar(500) null comment '스냅샷 생성 시점 콘텐츠 커버 이미지 URL',
|
||||
release_date timestamp not null comment '콘텐츠 공개 시각',
|
||||
is_adult boolean not null comment '스냅샷 생성 시점 성인 콘텐츠 여부',
|
||||
rank_no int not null comment '스냅샷 생성 시점 순위',
|
||||
final_score double not null comment '최종 랭킹 점수 또는 정렬 지표',
|
||||
normalized_score double null comment '유료/무료 그룹 정규화 점수',
|
||||
@@ -51,6 +52,9 @@ create index idx_content_ranking_snapshot_period_rank
|
||||
create index idx_content_ranking_snapshot_visible_rank
|
||||
on content_ranking_snapshot (ranking_type, visible_from_at desc, rank_no);
|
||||
|
||||
create index idx_content_ranking_snapshot_visible_adult_rank
|
||||
on content_ranking_snapshot (ranking_type, visible_from_at desc, is_adult, rank_no);
|
||||
|
||||
create index idx_content_ranking_snapshot_period_score
|
||||
on content_ranking_snapshot (ranking_type, aggregation_end_at_utc, final_score desc, release_date desc, content_id desc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user