Replies: 5 comments 2 replies
-
주요 기능 나열
|
Beta Was this translation helpful? Give feedback.
0 replies
-
---
title: 1안
---
graph
subgraph history_package
history
music
end
subgraph feed_package
feed
end
subgraph member_package
member
end
music --> history
feed --> history
history --> member
1안 가장 먼저 떠오른 의존관계
|
Beta Was this translation helpful? Give feedback.
1 reply
-
---
title: 2안
---
graph
subgraph music_package
music
end
subgraph history_package
history
end
subgraph feed_package
feed
end
subgraph member_package
member
end
music --> history
music --> feed
feed --> history
history --> member
1안과의 차이점
|
Beta Was this translation helpful? Give feedback.
0 replies
-
---
title: 3안
---
graph
subgraph history_package
history
music
end
subgraph feed_package
feed
end
subgraph member_package
member
end
music --> history
history_package --> feed_package
history_package --> member_package
|
Beta Was this translation helpful? Give feedback.
1 reply
-
3안으로 결정하고 erd는 다음과 같음 (이 설계에서 필요하지 않은 column, table은 생략) ---
title: erd
---
erDiagram
music {
Long id
MusicId musicId
String title
String artists
}
member {
Long id
}
history {
Long id
Long memberId
String title
String artists
}
feed {
Long id
Long historyId
String title
String artists
boolean viewable
}
member ||--o{ history: userHistory
history ||--o{ music: contains
feed ||--|| history: createdFrom
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
이 세가지 의존관계에 대한 고민
도메인간의 연관관계이지 db 설계와 다름
Beta Was this translation helpful? Give feedback.
All reactions