-
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๋จ๊ณ - ๋ชจ๋ธ๋ง ํ๊ธฐ #485
base: jwoo-o
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 |
---|---|---|
|
@@ -94,26 +94,33 @@ docker compose -p kitchenpos up -d | |
- ์๋ฃ๋์ง ์์ ๋งค์ฅ ์ฃผ๋ฌธ์ด ์๋ ์ฃผ๋ฌธ ํ ์ด๋ธ์ ๋น ํ ์ด๋ธ๋ก ์ค์ ํ์ง ์๋๋ค. | ||
- ์ฃผ๋ฌธ ๋ชฉ๋ก์ ์กฐํํ ์ ์๋ค. | ||
|
||
## ์ฉ์ด ์ฌ์ | ||
## ๋ชจ๋ธ๋ง | ||
|
||
### ์ํ | ||
|
||
#### ์ฉ์ด ์ฌ์ | ||
| ํ๊ธ๋ช | ์๋ฌธ๋ช | ์ค๋ช | | ||
|------|---------------|------------------------------------| | ||
| ์ํ | Product | ๊ณ ๊ฐ์๊ฒ ํ๋งค๋ฅผ ๋ชฉ์ ์ผ๋ก ๋ณด์ ํ ๋ฌผ๊ฑด์ผ๋ก ๋ฉ๋ด๋ฅผ ๊ตฌ์ฑํ๋ ๋จ์ | | ||
| ์ํ์ด๋ฆ | Product Name | ์ํ์ ์ด๋ฆ, ๋น์์ด๋ฅผ ์ฌ์ฉํ ์ ์๋ค. | | ||
| ๋น์์ด | profanity | ์์ค ๋๋ ์ ์ํ ํํ. | | ||
| ์ํ๊ฐ๊ฒฉ | Product Price | ์ํ์ ๊ฐ๊ฒฉ, 0์ ์ด์์ด์ฌ์ผ ํ๋ค. | | ||
|
||
### ๋ฉ๋ด๊ทธ๋ฃน | ||
#### ์์ฑ | ||
- `Product`๋ `UUID` `Product Name`, `Product Price`์ ๊ฐ์ง๊ณ ์๋ค. | ||
|
||
#### ๊ธฐ๋ฅ | ||
- `Product Price`๋ 0๋ณด๋ค ํฐ ๊ฐ์ด์ด์ผ ํ๋ค.' | ||
- `Product Name`์๋ `profanity`๊ฐ ํฌํจ๋ ์ ์๋ค. | ||
|
||
### ๋ฉ๋ด | ||
|
||
#### ์ฉ์ด ์ฌ์ | ||
| ํ๊ธ๋ช | ์๋ฌธ๋ช | ์ค๋ช | | ||
|----------|-----------------|--------------------------------| | ||
| ๋ฉ๋ด ๊ทธ๋ฃน | Menu Group | ๋ฉ๋ด์ ์งํฉ์ด๋ฉฐ, ๋ฉ๋ด๋ ํน์ ํ ๋ฉ๋ด๊ทธ๋ฃน์ ์ํด์ผํ๋ค. | | ||
| ๋ฉ๋ด ๊ทธ๋ฃน ์ด๋ฆ | Menu Group Name | ๋ฉ๋ด ๊ทธ๋ฃน์ ์ด๋ฆ์ ๋ํ๋ธ๋ค. | | ||
|
||
### ๋ฉ๋ด | ||
|
||
| ํ๊ธ๋ช | ์๋ฌธ๋ช | ์ค๋ช | | ||
|-----------|--------------------|------------------------------------------------| | ||
| ๋ฉ๋ด | Menu | ๊ณ ๊ฐ์๊ฒ ํ๋งค๋ฅผ ๋ชฉ์ ์ผ๋ก ๋ณด์ ํ ๋ฌผ๊ฑด์ผ๋ก ๋ฉ๋ด๋ฅผ ๊ตฌ์ฑํ๋ ๋จ์. | | ||
|
@@ -124,7 +131,34 @@ docker compose -p kitchenpos up -d | |
| ๋ฉ๋ด ๋ ธ์ถ ์ํ | Menu Displayed | ๋ฉ๋ด์ ๋ ธ์ถ ์ํ๋ฅผ ๋ํ๋ธ๋ค. | | ||
| ๋ฉ๋ด ๋ฏธ๋ ธ์ถ ์ํ | Menu Not Displayed | ๋ฉ๋ด์ ๋ฏธ๋ ธ์ถ ์ํ๋ฅผ ๋ํ๋ธ๋ค. | | ||
|
||
### ์ฃผ๋ฌธํ ์ด๋ธ | ||
#### ์์ฑ | ||
- `Menu Group`์ `UUID`, `Menu Group Name`์ ๊ฐ์ง๊ณ ์๋ค. | ||
- `Menu`๋ `UUID` `Menu Displayed`, `Menu Price`, `Menu Product`, ` Menu Name` ๋ฅผ ๊ฐ์ง๊ณ ์๋ค. | ||
- `Menu`๋ ํน์ `MenuGroup`์ ์ํ๋ค. | ||
|
||
#### ๊ธฐ๋ฅ | ||
- `Menu Price`๋ `Menu Product`์ ๊ธ์ก์ ํฉ๋ณด๋ค ์ ๊ฑฐ๋ ๊ฐ์์ผ ํ๋ค. | ||
- `Menu Price`๊ฐ `Menu Product`์ ๊ธ์ก์ ํฉ๋ณด๋ค ํฌ๋ฉด `Menu Not Displayed`๊ฐ ๋๋ค. | ||
- `Menu Product`๋ ๊ฐ๊ฒฉ๊ณผ ์๋์ ๊ฐ์ง๋ค. | ||
- `Menu Name`์๋ `Profanity`๊ฐ ํฌํจ๋ ์ ์๋ค. | ||
|
||
### ๋งค์ฅ ์ฃผ๋ฌธ | ||
|
||
#### ์ฉ์ด ์ฌ์ | ||
| ํ๊ธ๋ช | ์๋ฌธ๋ช | ์ค๋ช | | ||
|---------------|-----------|---------------------------------| | ||
| ์ฃผ๋ฌธ | Order | ๊ณ ๊ฐ์ด ๋งค์ฅ์์ ์ฃผ๋ฌธํ ์ํ์ ๋ณด๋ฅผ ๋ํ๋ธ๋ค. | | ||
| ์ฃผ๋ฌธ ์์ดํ | Order Line Item | ๊ณ ๊ฐ์ด ์ฃผ๋ฌธํ ์ํ ๋ชฉ๋ก ์ ๋ณด(๋ฉ๋ด, ์๋). | | ||
| ์ฃผ๋ฌธ ํ ์ด๋ธ | order table | ๋งค์ฅ์์ ์ฃผ๋ฌธ์ด ๋ฐ์ํ๋ ํ ์ด๋ธ | | ||
| ์ฃผ๋ฌธ ์ข ๋ฅ(๋งค์ฅ) | EAT_IN | ๋งค์ฅ ์ฃผ๋ฌธ ์ข ๋ฅ. | | ||
| ๋ฐฉ๋ฌธํ ์๋ ์ | number of guests | ๋งค์ฅ ํ ์ด๋ธ์ ์์ ์๋ ์ | | ||
| ์ฃผ๋ฌธ ์ํ | Order Status | ์ฃผ๋ฌธ์ ์ํ๋ฅผ ๋ํ๋ธ๋ค. | | ||
| ์ฃผ๋ฌธ ์ํ ํ๋ฆ | WAITING, ACCEPTED, SERVED, COMPLETED | ์ฃผ๋ฌธ์ ์ํ ํ๋ฆ | | ||
| ์ฃผ๋ฌธ ์ํ(์ ์ ๋๊ธฐ์ค) | WAITING | ๊ณ ๊ฐ์ด ์ฃผ๋ฌธ์ ์์ฒญ ํ ์ํ | | ||
| ์ฃผ๋ฌธ ์ํ(์ ์ ์๋ฃ) | ACCEPTED | ๊ณ ๊ฐ์ ์ฃผ๋ฌธ์ด ์ ์ ์๋ฃ๋ ์ํ. | | ||
| ์ฃผ๋ฌธ ์ํ(์๋น ์๋ฃ) | SERVED | ๊ณ ๊ฐ์ ์ฃผ๋ฌธ์ด ๋งค์ฅ ์ฃผ๋ฌธ์ด ์ฃผ๋ฌธ ํ ์ด๋ธ์ ์๋น์๋ฃ๋ ์ํ. | | ||
| ์ฃผ๋ฌธ ์ํ(์ฃผ๋ฌธ ์๋ฃ) | COMPLETED | ๊ณ ๊ฐ์ด ์์ฌ๋ฅผ ์๋ฃํ๊ณ `์ฃผ๋ฌธํ ์ด๋ธ`์ ๋ ๋ ์ํ | | ||
|
||
| ํ๊ธ๋ช | ์๋ฌธ๋ช | ์ค๋ช | | ||
|------------|------------------|-------------------------------| | ||
| ์ฃผ๋ฌธ ํ ์ด๋ธ | Order Table | ๋งค์ฅ ๋ด์์ ๊ณ ๊ฐ์ด ์์ฌํ ์ ์๋ ํ ์ด๋ธ์ ๋ํ๋ธ๋ค. | | ||
|
@@ -133,11 +167,25 @@ docker compose -p kitchenpos up -d | |
| ํ ์ด๋ธ ์ ์ ์ํ | Occupied | ํ ์ด๋ธ์ ์ ์ ์ํ๋ฅผ ๋ํ๋ธ๋ค. | | ||
| ํ ์ด๋ธ ๋ฏธ์ ์ ์ํ | Not Occupied | ํ ์ด๋ธ์ ๋ฏธ์ ์ ์ํ๋ฅผ ๋ํ๋ธ๋ค. | | ||
|
||
#### ๋ฐฐ๋ฌ ์ฃผ๋ฌธ(Delivery Order) | ||
#### ์์ฑ | ||
- `Order`๋ `UUID` `Order Status`, ์ฃผ๋ฌธ ์๊ฐ, `Order Line Items`๋ฅผ ๊ฐ์ง๊ณ ์๋ค. | ||
- `Order Table `์ `UUID` `Order Table Name`, `Number Of Guests`๋ฅผ ๊ฐ์ง๊ณ ์๋ค. | ||
- `Order Line Items`๋ ๊ฐ๊ฒฉ๊ณผ ์๋์ ๊ฐ์ง๊ณ ์๋ค. | ||
- `Order`๋ ์ ์ ๋๊ธฐ์ค โ ์ ์ ์๋ฃ โ ์๋น ์๋ฃ โ ์ฃผ๋ฌธ ์๋ฃ ์์๋ก ์งํํ๋ค. | ||
|
||
#### ๊ธฐ๋ฅ | ||
- `Order Table `์ ์ถ๊ฐ `Order`๋ `Order Table`์ ์์ด๋ฉฐ ๋ชจ๋ `Order`๊ฐ ์๋ฃ๋๋ฉด `Not Occupied`์ด ๋๋ค. | ||
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.
ํด๋น ๋ฌธ์ฅ์ ์ด์ํ๊ฒ ๋๊ปด์ก์ด์! |
||
- `Not Occupied`์ธ ๊ฒฝ์ฐ `Number Of Guests`๋ 0์ด๋ฉฐ ๋ณ๊ฒฝํ ์ ์๋ค. | ||
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 Line Item`์ `Menu`๊ฐ `Menu Displayed`์ด๋ฉฐ `Menu Price`๊ณผ ์ผ์นํ๋ฉด `Order`๊ฐ ์์ฑํ๋ค. | ||
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.
์ฃผ๋ฌธ ์ปจํ
์คํธ์์ ์ง์ฐ๋์ ์ด๋ป๊ฒ ๋ฐ๋ผ๋ณด๊ณ ๊ณ์ ์ง ๊ถ๊ธํด์! 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 | ๊ณ ๊ฐ์ด ๋ฐฐ๋ฌ๋ก ์ฃผ๋ฌธํ ์ํ์ ๋ณด๋ฅผ ๋ํ๋ธ๋ค. | | ||
| ์ฃผ๋ฌธ ์ข ๋ฅ(๋ฐฐ๋ฌ) | DELIVERY | ๋ฐฐ๋ฌ ์ฃผ๋ฌธ ์ข ๋ฅ. | | ||
| ์ฃผ๋ฌธ ์ํ | Order Status | ์ฃผ๋ฌธ์ ์ํ๋ฅผ ๋ํ๋ธ๋ค. | | ||
| ์ฃผ๋ฌธ ์ํ ํ๋ฆ | WAITING, ACCEPTED, SERVED, DELIVERING, DELIVERED, COMPLETED | ์ฃผ๋ฌธ์ ์ํ ํ๋ฆ | | ||
| ์ฃผ๋ฌธ ์ํ(์ ์ ๋๊ธฐ์ค) | WAITING | ๋ฐฐ๋ฌ ์ฃผ๋ฌธ์ด ์ ์์๋ฃ ๋๊ธฐ ์ ์ํ. | | ||
| ์ฃผ๋ฌธ ์ํ(์ ์ ์๋ฃ) | ACCEPTED | ๋ฐฐ๋ฌ ์ฃผ๋ฌธ์ด ์ ์์๋ฃ๋ ์ํ. | | ||
|
@@ -148,30 +196,36 @@ docker compose -p kitchenpos up -d | |
| ๋ฐฐ๋ฌ ๋ํ์ฌ | Delivery Agent | ์ฃผ๋ฌธ์ ๋ฐฐ๋ฌํด ์ฃผ๋ ์๋น์ค๋ฅผ ์ ๊ณตํ๋ ๋ํ์ฌ. | | ||
| ๋ฐฐ๋ฌ ์ฃผ์ | Delivery Address | ๋ฐฐ๋ฌ ์ฃผ์. | | ||
|
||
#### ํฌ์ฅ ์ฃผ๋ฌธ(TakeOut Order) | ||
#### ์์ฑ | ||
- `Order`๋ `UUID` `OrderStatus`, ์ฃผ๋ฌธ ์๊ฐ, `Delivery Address`, `Order Line Item`๋ฅผ ๊ฐ์ง๋ค. | ||
- `Order Line Item`๋ ๊ฐ๊ฒฉ๊ณผ ์๋์ ๊ฐ์ง๋ค. | ||
- `Order Line Item`์ ์๋์ 1๋ณด๋ค ์ปค์ผ ํ๋ค. | ||
- `Order`๋ ์ ์ ๋๊ธฐ์ค โ ์ ์ ์๋ฃ โ ์ค๋น ์๋ฃ โ ๋ฐฐ๋ฌ ์ค โ ๋ฐฐ๋ฌ ์๋ฃ โ ์ฃผ๋ฌธ ์๋ฃ ์์๋ก ์งํ๋๋ค. | ||
|
||
#### ๊ธฐ๋ฅ | ||
- `Menu`๊ฐ `Menu Displayed`์ด๋ฉฐ ๋ฉ๋ด ๊ฐ๊ฒฉ๊ณผ ์ผ์นํ๋ฉด `Order`๊ฐ ์์ฑ๋๋ค. | ||
- `Order`๊ฐ ์ ์๋๋ฉด `Delivery Agent`๊ฐ ํธ์ถ๋๋ค. | ||
Comment on lines
+205
to
+207
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 | ๊ณ ๊ฐ์ด ํฌ์ฅ ์ฃผ๋ฌธํ ์ํ์ ๋ณด๋ฅผ ๋ํ๋ธ๋ค. | | ||
| ์ฃผ๋ฌธ ์์ดํ | Order Line Item | ๊ณ ๊ฐ์ด ์ฃผ๋ฌธํ ์ํ ๋ชฉ๋ก ์ ๋ณด(๋ฉ๋ด, ์๋). | | ||
| ์ฃผ๋ฌธ ์ข ๋ฅ(ํฌ์ฅ) | TAKEOUT | ํฌ์ฅ ์ฃผ๋ฌธ ์ข ๋ฅ. | | ||
| ์ฃผ๋ฌธ ์ํ | Order Status | ์ฃผ๋ฌธ์ ์ํ๋ฅผ ๋ํ๋ธ๋ค. | | ||
| ์ฃผ๋ฌธ ์ํ ํ๋ฆ | WAITING, ACCEPTED, SERVED, COMPLETED | ์ฃผ๋ฌธ์ ์ํ ํ๋ฆ | | ||
| ์ฃผ๋ฌธ ์ํ(์ ์ ๋๊ธฐ์ค) | WAITING | ํฌ์ฅ ์ฃผ๋ฌธ์ด ์ ์๋๊ธฐ ์ ์ํ. | | ||
| ์ฃผ๋ฌธ ์ํ(์ ์ ์๋ฃ) | ACCEPTED | ํฌ์ฅ ์ฃผ๋ฌธ์ด ์ ์ ์๋ฃ๋ ์ํ. | | ||
| ์ฃผ๋ฌธ ์ํ(์๋น ์๋ฃ) | SERVED | ํฌ์ฅ ์ฃผ๋ฌธ์ ์๋ น ๊ฐ๋ฅํ ์ํ. | | ||
| ์ฃผ๋ฌธ ์ํ(์ฃผ๋ฌธ ์๋ฃ) | COMPLETED | ํฌ์ฅ ์ฃผ๋ฌธ์ ์๋ นํ ์ํ. | | ||
|
||
#### ๋งค์ฅ ์ฃผ๋ฌธ(EatIn Order) | ||
| ํ๊ธ๋ช | ์๋ฌธ๋ช | ์ค๋ช | | ||
|---------------|-----------|---------------------------------| | ||
| ์ฃผ๋ฌธ | Order | ๊ณ ๊ฐ์ด ๋งค์ฅ์์ ์ฃผ๋ฌธํ ์ํ์ ๋ณด๋ฅผ ๋ํ๋ธ๋ค. | | ||
| ์ฃผ๋ฌธ ์์ดํ | Order Line Item | ๊ณ ๊ฐ์ด ์ฃผ๋ฌธํ ์ํ ๋ชฉ๋ก ์ ๋ณด(๋ฉ๋ด, ์๋). | | ||
| ์ฃผ๋ฌธ ํ ์ด๋ธ | order table | ๋งค์ฅ์์ ์ฃผ๋ฌธ์ด ๋ฐ์ํ๋ ํ ์ด๋ธ | | ||
| ์ฃผ๋ฌธ ์ข ๋ฅ(๋งค์ฅ) | EAT_IN | ๋งค์ฅ ์ฃผ๋ฌธ ์ข ๋ฅ. | | ||
| ๋ฐฉ๋ฌธํ ์๋ ์ | number of guests | ๋งค์ฅ ํ ์ด๋ธ์ ์์ ์๋ ์ | | ||
| ์ฃผ๋ฌธ ์ํ ํ๋ฆ | WAITING, ACCEPTED, SERVED, COMPLETED | ์ฃผ๋ฌธ์ ์ํ ํ๋ฆ | | ||
| ์ฃผ๋ฌธ ์ํ(์ ์ ๋๊ธฐ์ค) | WAITING | ๊ณ ๊ฐ์ด ์ฃผ๋ฌธ์ ์์ฒญ ํ ์ํ | | ||
| ์ฃผ๋ฌธ ์ํ(์ ์ ์๋ฃ) | ACCEPTED | ๊ณ ๊ฐ์ ์ฃผ๋ฌธ์ด ์ ์ ์๋ฃ๋ ์ํ. | | ||
| ์ฃผ๋ฌธ ์ํ(์๋น ์๋ฃ) | SERVED | ๊ณ ๊ฐ์ ์ฃผ๋ฌธ์ด ๋งค์ฅ ์ฃผ๋ฌธ์ด ์ฃผ๋ฌธ ํ ์ด๋ธ์ ์๋น์๋ฃ๋ ์ํ. | | ||
| ์ฃผ๋ฌธ ์ํ(์ฃผ๋ฌธ ์๋ฃ) | COMPLETED | ๊ณ ๊ฐ์ด ์์ฌ๋ฅผ ์๋ฃํ๊ณ `์ฃผ๋ฌธํ ์ด๋ธ`์ ๋ ๋ ์ํ | | ||
#### ์์ฑ | ||
- `Order`๋ `UUID`, `OrderStatus`, ์ฃผ๋ฌธ ์๊ฐ, `OrderLineItems`๋ฅผ ๊ฐ์ง๋ค. | ||
- `Order Line Item`๋ ๊ฐ๊ฒฉ๊ณผ ์๋์ ๊ฐ์ง๋ค. | ||
- `Order Line Item`์ ์๋์ 1๋ณด๋ค ์ปค์ผ ํ๋ค. | ||
- `Order`๋ ์ ์ ๋๊ธฐ์ค โ ์ ์ ์๋ฃ โ ์๋น ์๋ฃ โ ์ฃผ๋ฌธ ์๋ฃ ์์๋ก ์งํ๋๋ค. | ||
|
||
## ๋ชจ๋ธ๋ง | ||
#### ๊ธฐ๋ฅ | ||
- `Menu`๊ฐ `Menu Displayed`์ด๋ฉฐ ๋ฉ๋ด ๊ฐ๊ฒฉ๊ณผ ์ผ์นํ๋ฉด `Order`๊ฐ ์์ฑ๋๋ค. |
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.
์ฃผ๋ฌธ ์ํ ํ๋ฆ์ ์ฃผ๋ฌธ ์ํ์ ์ค๋ช ์ ์์น ์์ผ๋ณด๋๊ฒ๋ ์ข๋ค๊ณ ์๊ฐํด์!
์ฃผ๋ฌธ ์ํ ํ๋ฆ์ด๋ผ๋ ๊ฒ์ ์ฉ์ด๋ก์จ ์กด์ฌํ๊ธฐ๋ณด๋ค ์ฃผ๋ฌธ ์ํ์ ๋ํ ์ค๋ช ์ ์ผ๋ถ๋ก ๋ณด์ฌ์์ ๐