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

πŸš€ 2단계 - λͺ¨λΈλ§ ν•˜κΈ° #437

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

Conversation

MoonHKLee
Copy link

λŠ¦μ§€λ§Œ μž˜λΆ€νƒλ“œλ¦½λ‹ˆλ‹€.

Copy link

@Gomding Gomding left a comment

Choose a reason for hiding this comment

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

μ•ˆλ…•ν•˜μ„Έμš” λ¬Έν˜λ‹˜!
λͺ¨λΈλ§ λ―Έμ…˜ κ΅¬ν˜„ν•˜λŠλΌ κ³ μƒν•˜μ…¨μ–΄μš” πŸ™‡
λͺ‡ 가지 의견 λ‚˜λˆ„κ³ μ‹Άμ€κ³³μ— μ½”λ©˜νŠΈ λ‚¨κ²Όμ–΄μš” :)
λ―Έμ…˜ λκΉŒμ§€ ν™”μ΄νŒ…μž…λ‹ˆλ‹€ 😀

κΆκΈˆν•œ 점 있으면 νŽΈν•˜κ²Œ DMμ΄λ‚˜ μ½”λ©˜νŠΈ λ‚¨κ²¨μ£Όμ„Έμš”!!


## λͺ¨λΈλ§

### μƒν’ˆ

- `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.

Product κ°€ κ°€μ§€λŠ” 속성 에 λŒ€ν•΄μ„œ 잘 ν‘œν˜„ν•΄μ£Όμ…¨κ΅°μš” :)
λ‹€λ₯Έ λͺ¨λΈμ— ν•΄μ£Όμ‹ κ²ƒμ²˜λŸΌ 속성이 κ°€μ§€λŠ” νŠΉμ„±(λΆˆλ³€μ‹)을 ν‘œν˜„ν•΄λ΄λ„ μ’‹κ² μ–΄μš”!

예λ₯Όλ“€μ–΄ λ‹€μŒκ³Ό κ°™μ΄μš”!

Product의 name은 1κΈ€μž 이상을 가진닀.

| μ£Όλ¬Έ μ ‘μˆ˜ λŒ€κΈ° | waiting | 주문이 맀μž₯μ—μ„œ μˆ˜λ½μ„ κΈ°λ‹€λ¦¬λŠ” μƒνƒœ |
| μ£Όλ¬Έ μ ‘μˆ˜ | accepted | 주문이 맀μž₯μ—μ„œ μˆ˜λ½λ˜μ–΄ 쑰리λ₯Ό μ‹œμž‘ν•˜λŠ” μƒνƒœ. |
| μ„œλΉ™ μ™„λ£Œ | served | 쑰리가 μ™„λ£Œλ˜μ–΄ μŒμ‹μ„ 전달 ν•  수 μžˆλŠ” μƒνƒœ. |
| μ£Όλ¬Έ μ’…λ£Œ | completed | μ†λ‹˜μ΄ μŒμ‹μ„ λ‹€ λ¨Ήκ³  κ³„μ‚°κΉŒμ§€ μ™„λ£Œν•œ μƒνƒœ.

## λͺ¨λΈλ§
Copy link

Choose a reason for hiding this comment

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

λͺ¨λΈλ§ μ „μ²΄μ μœΌλ‘œ ν–‰μœ„λ„ μ •μ˜ν•΄λ³΄λ©΄ μ’‹κ² μ–΄μš” :)

예λ₯Όλ“€μ–΄ λ‹€μŒκ³Ό 같이 μ •μ˜ν•΄λ³Ό 수 μžˆμ–΄μš”!

Product λ₯Ό 등둝할 수 μžˆλ‹€.

  • Product의 name은 비속어 검사λ₯Ό ν•˜μ—¬ 비속어가 μžˆλ‹€λ©΄ 등둝할 수 μ—†λ‹€.

- `OrderLineItem`λŠ” 가격과 μˆ˜λŸ‰μ„ 가진닀.
- `OrderLineItem`의 μˆ˜λŸ‰μ€ 음수일 수 μžˆλ‹€.

- `Order`λŠ” μ£Όλ¬Έ μ ‘μˆ˜ λŒ€κΈ° -> μ£Όλ¬Έ μ ‘μˆ˜ -> μ„œλΉ™ μ™„λ£Œ -> 계산 μ™„λ£Œ μˆœμ„œλ‘œ μ§„ν–‰λœλ‹€.
Copy link

Choose a reason for hiding this comment

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

[μš”κ²ƒμ€ μ·¨ν–₯차이인 λΆ€λΆ„μž…λ‹ˆλ‹€]
Order λΌλŠ” 것이 μœ ν˜•λ³„λ‘œ μ€‘λ³΅λ˜λŠ” 이름이라
ꡬ뢄을 μœ„ν•΄μ„œ μœ ν˜•μ„ ν‘œμ‹œν•˜λŠ” 방법도 μžˆμ„κ²ƒκ°™μ•„μš”!

맀μž₯ μ£Όλ¬Έ

EatInOrder

배달 μ£Όλ¬Έ

DeliveryOrder

- `OrderLineItem`λŠ” 가격과 μˆ˜λŸ‰μ„ 가진닀.
- `OrderLineItem`의 μˆ˜λŸ‰μ€ 음수일 수 μžˆλ‹€.

- `Order`λŠ” μ£Όλ¬Έ μ ‘μˆ˜ λŒ€κΈ° -> μ£Όλ¬Έ μ ‘μˆ˜ -> μ„œλΉ™ μ™„λ£Œ -> 계산 μ™„λ£Œ μˆœμ„œλ‘œ μ§„ν–‰λœλ‹€.
Copy link

Choose a reason for hiding this comment

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

λͺ¨λΈλ§μ— μ£Όλ¬Έ μƒνƒœ λ³€κ²½ 흐름을 ν‘œμ‹œν•΄μ£Όμ‹  점이 μ’‹λ„€μš”!! πŸ‘ πŸ‘ πŸ‘


- `MenuGroup`은 μ‹λ³„μž, `name`을 가진닀.
- `Menu`λŠ” μ‹λ³„μž, `name`, `price`, `MenuProducts`λ₯Ό 가진닀.
- `Menu`λŠ” `MenuGroup`에 μ†ν•œλ‹€.
Copy link

Choose a reason for hiding this comment

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

메뉴 κ·Έλ£Ή, μ£Όλ¬Έ ν…Œμ΄λΈ”μ€ λ”°λ‘œ λͺ¨λΈλ§μ„ ν•˜μ§€ μ•ŠμœΌμ‹  μ΄μœ λ„ κΆκΈˆν•΄μš” πŸ™‹β€β™‚οΈ
(λ°˜μ˜μ„ λ°”λΌλŠ”κ²ƒμ€ μ•„λ‹ˆκ³  정말 μ˜λ„κ°€ κΆκΈˆν•΄μ„œ μ§ˆλ¬Έλ“œλ €μš”!)

- `OrderLineItem`λŠ” 가격과 μˆ˜λŸ‰μ„ 가진닀.

- `Order`λŠ” μ£Όλ¬Έ μ ‘μˆ˜ λŒ€κΈ° -> μ£Όλ¬Έ μ ‘μˆ˜ -> μ„œλΉ™ μ™„λ£Œ -> 배달 -> 배달 μ™„λ£Œ -> μ£Όλ¬Έ μ’…λ£Œ μˆœμ„œλ‘œ μ§„ν–‰λœλ‹€.
- `Order`κ°€ μ ‘μˆ˜λ˜λ©΄ `DeliveryAgency`κ°€ ν˜ΈμΆœλœλ‹€.
Copy link

Choose a reason for hiding this comment

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

배달 μ£Όλ¬Έμ—μ„œ μ€‘μš”ν•œ 사항도 μ±™κ²¨μ£Όμ…¨κ΅°μš” πŸ‘


- `OrderTable`은 μ‹λ³„μž, `name`, `NumberOfGuests`λ₯Ό 가진닀.
- `OrderTable`이 λ°˜λ“œμ‹œ μžˆμ–΄μ•Όν•œλ‹€.
- `EmptyTable`은 `NumberOfGuests`κ°€ 0이고 λ³€κ²½ λΆˆκ°€λŠ₯ν•˜λ‹€.
Copy link

Choose a reason for hiding this comment

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

μ‚¬μ†Œν•˜μ§€λ§Œ λ‹€μŒκ³Ό 같이 ν‘œν˜„ν•˜λŠ”κ²ƒμ΄ μ΄ν•΄ν•˜κΈ°μ— μ’‹λ‹€κ³  μƒκ°ν•΄μš”
(λ‹€λ₯Έ 뢀뢄은 λ‹¨μœ„λ₯Ό ν‘œν˜„ν•΄μ£Όμ‹ κ²ƒμœΌλ‘œ 보아 κΉœλΉ‘ν•˜μ‹ κ²ƒ κ°™λ„€μš”γ…Žγ…Ž πŸ€—)

Suggested change
- `EmptyTable`은 `NumberOfGuests`κ°€ 0이고 λ³€κ²½ λΆˆκ°€λŠ₯ν•˜λ‹€.
- `EmptyTable`은 `NumberOfGuests`κ°€ 0λͺ… 이고 λ³€κ²½ λΆˆκ°€λŠ₯ν•˜λ‹€.

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.

2 participants