-
Notifications
You must be signed in to change notification settings - Fork 199
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๋จ๊ณ - ๋ชจ๋ธ๋ง ํ๊ธฐ #488
base: seovalue
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,16 +123,16 @@ docker compose -p kitchenpos up -d | |
| ์ฃผ๋ฌธ | Order | ๊ณ ๊ฐ์ด ์์ฒญํ `๋ฉ๋ด`๋ค์ ์งํฉ | | ||
| ์ฃผ๋ฌธ ๋ด์ญ | Order Item | `์ฃผ๋ฌธ`์ ํฌํจ๋ ๊ฐ๋ณ `๋ฉ๋ด`์ ์๋์ ์ ๋ณด | | ||
| ์ฃผ๋ฌธ ์ ํ | Order Type | `์ฃผ๋ฌธ`์ ์ฒ๋ฆฌ ๋ฐฉ์์ ๊ตฌ๋ถํ๋ ๊ฐ | | ||
| ๋ฐฐ๋ฌ ์ฃผ๋ฌธ | Delivery Order | `๋ฐฐ๋ฌ`๊ธฐ์ฌ๊ฐ ๋ฐฐ๋ฌํด์ผ ํ๋ `์ฃผ๋ฌธ` | | ||
| ํฌ์ฅ ์ฃผ๋ฌธ | Takeout Order | `์๋`์ด ์ง์ ๋ฐฉ๋ฌธํด์ ๊ฐ์ ธ๊ฐ๋ `์ฃผ๋ฌธ` | | ||
| ๋งค์ฅ ์ฃผ๋ฌธ | Eat In Order | ๋งค์ฅ ๋ด ์์ฌ๊ฐ ํ์ํ `์ฃผ๋ฌธ` | | ||
| ์ฃผ๋ฌธ ์ํ | Order Status | ์ฃผ๋ฌธ์ ์ฒ๋ฆฌ ๋จ๊ณ๋ฅผ ๋ํ๋ด๋ ๊ฐ์ผ๋ก, ์ฃผ๋ฌธ ์ ํ๋ณ๋ก ๋ค๋ฅธ ํ๋ฆ์ ๊ฐ์ง | | ||
| ์ ์ ๋๊ธฐ | Waiting | ์ฃผ๋ฌธ์ ๋ฐ์ ๋ค ์ ์ ์๋ฃ ์ ์ ์ฃผ๋ฌธ ์ํ. ๋ชจ๋ ์ฃผ๋ฌธ ์ ํ์ ์ด๊ธฐ ์ํ | | ||
| ์ ์ ์๋ฃ | Accepted | ์ ์๊ฐ ์๋ฃ๋์๊ณ ์ฃผ๋ฌธ ์ฒ๋ฆฌ๋ฅผ ์์ํ ์ํ | | ||
| ๋ฐฐ๋ฌ ์ฃผ๋ฌธ | Delivery Order | `๋ฐฐ๋ฌ`๊ธฐ์ฌ๊ฐ ๋ฐฐ๋ฌํด์ผ ํ๋ `์ฃผ๋ฌธ` (์งํ์์: ์ ์ ๋๊ธฐ > ์ ์ > ์๋น > ๋ฐฐ๋ฌ ์ค > ๋ฐฐ๋ฌ ์๋ฃ > ์๋ฃ) | | ||
| ํฌ์ฅ ์ฃผ๋ฌธ | Takeout Order | `์๋`์ด ์ง์ ๋ฐฉ๋ฌธํด์ ๊ฐ์ ธ๊ฐ๋ `์ฃผ๋ฌธ` (์งํ์์: ์ ์ ๋๊ธฐ > ์ ์ > ์๋น > ์๋ฃ) | | ||
| ๋งค์ฅ ์ฃผ๋ฌธ | Eat In Order | ๋งค์ฅ ๋ด ์์ฌ๊ฐ ํ์ํ `์ฃผ๋ฌธ` (์งํ์์: ์ ์ ๋๊ธฐ > ์ ์ > ์๋น > ์๋ฃ) | | ||
| ์ฃผ๋ฌธ ์ํ | Order Status | ์ฃผ๋ฌธ์ ์ฒ๋ฆฌ ๋จ๊ณ๋ฅผ ๋ํ๋ด๋ ๊ฐ | | ||
| ์ ์ ๋๊ธฐ | Waiting | ์ฃผ๋ฌธ์ ๋ฐ์ ๋ค ์ ์ ์๋ฃ ์ ์ ์ฃผ๋ฌธ ์ํ | | ||
| ์ ์ ์๋ฃ | Accepted | ์ ์๊ฐ ์๋ฃ๋์๊ณ ์๋น ์๋ฃ ์ ์ ์ฃผ๋ฌธ ์ํ | | ||
| ์๋น ์๋ฃ | Served | ์๋น์ด ์๋ฃ๋ ์ฃผ๋ฌธ ์ํ | | ||
| ๋ฐฐ๋ฌ ์ค | Delivering | ๋ฐฐ๋ฌ ์ฃผ๋ฌธ์์๋ง ์ฌ์ฉ๋๋ ์ํ๋ก, ๋ฐฐ๋ฌ ๊ธฐ์ฌ๊ฐ ๋ฐฐ๋ฌ์ ์์ํ ์ํ | | ||
| ๋ฐฐ๋ฌ ์๋ฃ | Delivered | ๋ฐฐ๋ฌ ์ฃผ๋ฌธ์์๋ง ์ฌ์ฉ๋๋ ์ํ๋ก, ๋ฐฐ๋ฌ ๊ธฐ์ฌ๊ฐ ๋ฐฐ๋ฌ์ ์๋ฃํ ์ํ | | ||
| ์๋ฃ | Completed | ๋ชจ๋ ์ฃผ๋ฌธ ์ฒ๋ฆฌ๊ฐ ์๋ฃ๋ ์ต์ข ์ํ | | ||
| ๋ฐฐ๋ฌ ์ค | Delivering | ๋ฐฐ๋ฌ ์ค์ธ ์ฃผ๋ฌธ ์ํ | | ||
| ๋ฐฐ๋ฌ ์๋ฃ | Delivered | ๋ฐฐ๋ฌ์ด ์๋ฃ๋ ์ฃผ๋ฌธ ์ํ | | ||
| ์๋ฃ | Completed | ์ฃผ๋ฌธ์ด ์๋ฃ๋ ์ฃผ๋ฌธ ์ํ | | ||
| ๋ฐฐ๋ฌ ์ ๋ณด | Delivery Info | ๋ฐฐ๋ฌ ์ฃผ๋ฌธ์ ํ์ํ ์ ๋ณด | | ||
| ๋ฐฐ๋ฌ ๋ํ์ฌ | Kitchen Rider | ์ธ๋ถ ๋ฐฐ๋ฌ ๋ํ์ฌ ์์คํ | | ||
|
||
|
@@ -149,3 +149,41 @@ docker compose -p kitchenpos up -d | |
| ์๋ ์ | Guest Count | ํ ์ด๋ธ์ ์ฐฉ์ํ ์๋์ ์ | | ||
|
||
## ๋ชจ๋ธ๋ง | ||
### ์ํ ๊ด๋ฆฌ | ||
- `Product`๋ ์๋ณ์์ ์ด๋ฆ, ๊ฐ๊ฒฉ์ ๊ฐ์ง๋ค. | ||
- `Product`๋ ์ฌ๋ฌ ๊ฐ์ `Menu`์ ์ํ ์ ์๋ค. | ||
- `Product`๋ ์ฌ๋ฌ ๊ฐ์ `OrderItem`์ ์ํ ์ ์๋ค. | ||
- `Menu`๋ ์๋ณ์์ ์ด๋ฆ, ๊ฐ๊ฒฉ, ์ํ๋ฅผ ๊ฐ์ง๋ค. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๋ฉ๋ด์ ๋ ธ์ถ์ฌ๋ถ ์์ฑ๋ ํ์ํ์ง ์์๊น์? |
||
- `Menu`๋ ํ๋์ `MenuGroup`์ ์ํ๋ค. | ||
- `Menu`๋ ์ฌ๋ฌ ๊ฐ์ `MenuProduct`๋ฅผ ๊ฐ์ง๋ค. | ||
- `Menu`๋ ์์ ์ ๋ ธ์ถ ์ฌ๋ถ๋ฅผ ๊ฒฐ์ ํ ์ ์๋ค. | ||
- `MenuGroup`์ ์๋ณ์์ ์ด๋ฆ์ ๊ฐ์ง๋ค. | ||
- `MenuProduct`๋ `Product`์ ์๋ ์ ๋ณด๋ฅผ ๊ฐ์ง๋ค. | ||
- `DisplayedMenu`๋ `Menu`์ ๋ ธ์ถ ์ฌ๋ถ๋ฅผ ๊ฒฐ์ ํ ์ ์๋ค. | ||
- `HiddenMenu`๋ `Menu`๊ฐ ๋ ธ์ถ๋์ง ์๋ ์ํ๋ฅผ ํํํ๋ค. | ||
- `PurgoMalum`์ ๋น์์ด ํํฐ๋ง ์์คํ ์ด๋ค. | ||
|
||
### ์ฃผ๋ฌธ ๊ด๋ฆฌ | ||
- `Order`๋ ์๋ณ์์ ์ฃผ๋ฌธ ์ ํ, ์ฃผ๋ฌธ ์ํ๋ฅผ ๊ฐ์ง๋ค. | ||
- `Order`๋ ์ฌ๋ฌ ๊ฐ์ `OrderItem`์ ๊ฐ์ง๋ค. | ||
Comment on lines
+167
to
+168
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ฃผ๋ฌธ ์ผ์๋ ํ์ ์์๊น์? |
||
- `Order`๋ ์ฃผ๋ฌธ ์ ํ์ ๋ฐ๋ผ ์งํ ์ํ๋ฅผ ๋ณ๊ฒฝํ ์ ์๋ค. | ||
- `OrderItem`์ `Menu`์ ์๋ ์ ๋ณด๋ฅผ ๊ฐ์ง๋ค. | ||
- `OrderStatus`๋ ์ฃผ๋ฌธ์ ์ฒ๋ฆฌ ๋จ๊ณ๋ฅผ ํํํ๋ค. | ||
- `OrderType`์ ์ฃผ๋ฌธ์ ์ฒ๋ฆฌ ๋ฐฉ์์ ๊ตฌ๋ถํ๋ค. | ||
- `DeliveryOrder`๋ ๋ฐฐ๋ฌ ์ฃผ์ ์ ๋ณด๋ฅผ ์ถ๊ฐ๋ก ๊ฐ์ง๋ค. | ||
- `DeliveryOrder`๋ ๋ฐฐ๋ฌ ๋ํ์ฌ๋ฅผ ํธ์ถํ๋ค. | ||
- `DeliveryOrders`๋ ์ ์ ๋๊ธฐ > ์ ์ > ์๋น > ๋ฐฐ๋ฌ ์ค > ๋ฐฐ๋ฌ ์๋ฃ > ์๋ฃ ์์ผ๋ก ์งํ๋๋ค. | ||
- `TakeoutOrder`๋ ํฌ์ฅ ์ฃผ๋ฌธ ์ ๋ณด๋ฅผ ์ถ๊ฐ๋ก ๊ฐ์ง๋ค. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ถ๊ฐ๋ก ๊ฐ์ ธ์ผํ๋ ํฌ์ฅ ์ฃผ๋ฌธ ์ ๋ณด๊ฐ ์ด๋ค๊ฑด๊ฐ์? ๐ค |
||
- `TakeoutOrders`๋ ์ ์ ๋๊ธฐ > ์ ์ > ์๋น > ์๋ฃ ์์ผ๋ก ์งํ๋๋ค. | ||
- `EatInOrder`๋ ๋งค์ฅ ์ฃผ๋ฌธ ์ ๋ณด๋ฅผ ์ถ๊ฐ๋ก ๊ฐ์ง๋ค. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. EatainOrder๊ฐ ์ถ๊ฐ๋ก ๊ฐ์ ธ์ผํ ๋งค์ฅ ์ฃผ๋ฌธ ์ ๋ณด๋ ๋ฌด์์ธ์ง ๊ตฌ์ฒด์ ์ผ๋ก ๋ช ์ํ๋ ๊ฑด ์ด๋จ๊น์? |
||
- `EatInOrders`๋ ์ ์ ๋๊ธฐ > ์ ์ > ์๋น > ์๋ฃ ์์ผ๋ก ์งํ๋๋ค. | ||
|
||
|
||
### ํ ์ด๋ธ ๊ด๋ฆฌ | ||
- `OrderTable`์ ์๋ณ์์ ์ด๋ฆ, ํ ์ด๋ธ ์ํ๋ฅผ ๊ฐ์ง๋ค. | ||
- `OrderTable`์ ์๋ ์๋ฅผ ๊ฐ์ง๋ค. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์๋์๋ ์ฉ์ด์ฌ์ ์ ์ ์๋์ด ์๋๋ฐ ์ผ๊ด์ฑ ์ธก๋ฉด์์ ์ฉ์ด์ฌ์ ์ ์๋ฌธ๋ช ์ ์ฌ์ฉํ๋ ๊ฑด ์ด๋ค๊ฐ์? |
||
- `OrderTable`์ ์ฌ๋ฌ ๊ฐ์ `Order`๋ฅผ ๊ฐ์ง ์ ์๋ค. | ||
- `OrderTable`์ ํ ์ด๋ธ์ ์ํ๋ฅผ ๋ณ๊ฒฝํ ์ ์๋ค. | ||
- `TableStatus`๋ ํ ์ด๋ธ์ ์ฌ์ฉ ์ํ๋ฅผ ํํํ๋ค. | ||
- `EmptyTable`์ `GuestCount`๊ฐ 0์ธ ๋น ํ ์ด๋ธ ์ํ๋ฅผ ํํํ๋ค. | ||
- `OccupiedTable`์ `GuestCount`๊ฐ 0๋ณด๋ค ํฐ ์ฌ์ฉ ์ค์ธ ํ ์ด๋ธ ์ํ๋ฅผ ํํํ๋ค. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ฏผ์ ๋๊ป์ ์์ฑํด์ฃผ์ ๋ชจ๋ธ๋ง์ ์ดํด๋ณด๋ฉด ์ฃผ๋ก ๋๋ฉ์ธ์ ์์ฑ(์ํ) ์์ฃผ๋ก ๋์ด ์๋ ๊ฒ ๊ฐ์์.
์ ๋ ์ฌ๊ธฐ์ ์ปจํ ์คํธ๋ณ๋ก ํ์ํ ์ ์ฑ (์ ์ฝ์ฌํญ)๊ณผ ํ์(๊ธฐ๋ฅ)๋ ๋ช ์๊ฐ ๋๋ฉด ๋์ฑ ์ข์ ๊ฒ ๊ฐ๋ค๊ณ ์๊ฐํฉ๋๋ค.
๊ฐ ๋๋ฉ์ธ๋ณ๋ก ์์ฑ(์ํ), ํ์(๊ธฐ๋ฅ), ์ ์ฑ (์ ์ฝ์ฌํญ)์ผ๋ก ์นดํ ๊ณ ๋ฆฌ๋ฅผ ๋๋ ์ ์์ฑํ๋ฉด ํ ๋์ ํ์ ํ๊ธฐ์๋ ์ข๊ตฌ์.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๊ตฌ์ฌํญ์ ๋ช ์๋ ์ ์ฝ์ฌํญ์ด ๋ชจ๋ธ๋ง์์๋ ๋น ์ ธ ์๋ ๊ฒ ๋ณด์ด๋ค์. ์)๊ฐ๊ฒฉ, ์๋, ๋ฉ๋ด ์จ๊น์ ๋ํ ์ ์ฝ ์ฌํญ๋ค
๋ชจ๋ธ๋ง ์ ์ฒด์ ์ผ๋ก ์ ๊ฒ ํ๋ฒ ๋ถํ๋๋ฆด๊ป์.
๋ชจ๋ธ๋ง์ ๋ณด๊ณ ์ฝ๋๋ฅผ ์์ฑํ ๋ ํ์ํ ์ ๋ณด๋ผ๊ณ ์๊ฐ๋๊ฑฐ๋ ์.