AK 아이에스
테이블 (3)
주문 (order)
- Key (id) — bigint — 기본 키 — NOT NULL — id
- 매장코드 (store_code) — NOT NULL — 매장코드
- 영업일자 (sale_date) — varchar — NOT NULL — 영업일자
- 포스번호 (pos_no) — varchar — NOT NULL — 포스번호
- 주문번호 (order_no) — varchar — NOT NULL — 주문번호
- 상태값 (status) — varchar — NOT NULL — 상태값 : 접수, 조리중, 완료, 삭제등
- 전화번호 (phone_number) — varchar — 전화번호 :알림톡을 사용할 경우만
- 추가일 (created_at) — date — NOT NULL — 추가일
- 수정일 (updated_at) — date — 수정일
주문_상세 (order_detail)
- Key (id) — bigint — 기본 키 — NOT NULL — id
- 주문ID (order_id) — bigint — 외래 키 → 주문.Key — NOT NULL — order_id
- 주문차수 (sequence) — int — NOT NULL — 주문차수
- 상품명 (product_name) — varchar — NOT NULL — 상품명
- 수량 (quantity) — int — NOT NULL — 수량
- 금액 (amount) — int — NOT NULL — 금액
- 상태 (status) — varchar — NOT NULL — 상태
- 추가일 (created_at) — date — NOT NULL — 추가일
- 수정일 (updated_at) — date — 수정일
주문상세-옵션상품 (order_detail_option)
- Key (id) — bigint — 기본 키 — NOT NULL — id
- Key (order_detail_id) — bigint — 외래 키 → 주문_상세.Key — NOT NULL — order_detail_id
- 옵션명 (option_name) — varchar — NOT NULL — 옵션명
- 수량 (quantity) — int — NOT NULL — 수량
- 금액 (amount) — int — 금액
- 추가일 (created_at) — date — NOT NULL — 추가일