docs(home): 홈 추천 Phase 7 산출물을 정리한다

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-06-01 17:57:42 +09:00
parent 23cbdb4782
commit 1682c3ef8a
2 changed files with 82 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
create table recommendation_snapshot (
id bigint not null auto_increment,
created_at datetime(6) null,
updated_at datetime(6) null,
section_type varchar(50) not null,
target_id bigint not null,
score double not null,
snapshot_at datetime(6) not null,
random_tie_breaker double not null,
primary key (id),
index idx_recommendation_snapshot_latest (section_type, snapshot_at, score, random_tie_breaker),
index idx_recommendation_snapshot_target (section_type, target_id)
);
create table creator_content_view_history (
id bigint not null auto_increment,
created_at datetime(6) null,
updated_at datetime(6) null,
member_id bigint not null,
content_id bigint not null,
genre_id bigint not null,
viewed_at datetime(6) not null,
primary key (id),
index idx_creator_content_view_history_member_viewed (member_id, viewed_at),
index idx_creator_content_view_history_content (content_id),
index idx_creator_content_view_history_genre (genre_id)
);