Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step2 모델링 하기 #330

Open
wants to merge 2 commits into
base: kymiin
Choose a base branch
from
Open

Step2 모델링 하기 #330

wants to merge 2 commits into from

Conversation

kymiin
Copy link

@kymiin kymiin commented Sep 12, 2023

늦었지만 잘 부탁드립니다!

Copy link

@wlroh wlroh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

경윤님 안녕하세요 :)
미션 고생하셨습니다 👍 👍
코멘트 추가했는데요, 확인부탁드려요!

* 상품(`Product`)을 전체를 조회한다.
* 상품(`Product`)을 등록한다.
* 상품(`Product`)의 가격(`price`)은 0원 이상이어야 한다.
* 상품(`Product`)의 이름(`name`)은 없거나 비속어를 사용할 수 없다.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

비속어도 용어사전으로 정의되어 있어서 백틱(`)을 활용해 용어임을 나타내 보는 것은 어떤가요?



### 메뉴
* 메뉴(`Menu`)는 이름(`name`), 가격(`price`), 메뉴구성 상품(`MenuProduct`), 메뉴그룹(`MenuGroup`), 메뉴노출 상태(`displayed`)를 가진다.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

모델링과 용어사전은 합쳐졌을 때 굉장한 시너지를 내요.
모델링의 MenuProduct 과 용어사전의 MenuProduct 를 통일시켜보는 것은 어떤가요?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 혹시 메뉴(Menu) 가 용어사전의 한글명(영문명)을 뜻하는 것이 맞을까요? 🤔




### 메뉴그룹
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재 분류하신 기준이 도메인 기준일까요? 바운디드 컨텍스트 기준일까요?

@@ -185,3 +185,130 @@ docker compose -p kitchenpos up -d


## 모델링

### 상품
* 상품(`Product`)은 이름(`name`), 가격(`price`)를 가진다.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

속성과 행위로 구분해보는 것은 어떤가요?
개행으로 구분지어도 좋을 것 같고, 소제목으로 나눠도 좋을 것 같아요.

* 등록된 메뉴(`Menu`)이어야 한다.


### 주문테이블
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

꼼꼼하게 잘 정리해주셨네요 👍 👍

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다만, 용어사전과 매칭이 안되는 부분이 있어요.
확인부탁드려요

* 주문(`Order`) 전체를 조회한다.


#### 매장 주문
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

매장 주문의 Flow 도 같이 표현해보는 것은 어떤가요?
예를 들면 이렇게 적어볼 수 있겠네요.

주문타입(Ordertype)이 매장주문(EAT_IN)인 주문(Order)은 접수중(waiting) → 접수완료(accepted) ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants