배달의 민족
테이블 (3)
Order (주문)
- order_id (주문_아이디) — int — 기본 키 — NOT NULL
- product_id (상품_아이디) — int — 외래 키 → Product.product_id — NOT NULL
- user_id (고객_아이디) — int — 외래 키 → User.user_id — NOT NULL
- product_num (상품_수량) — int — NOT NULL
- order_status (주문_상태) — bool — NOT NULL
- order_date (주문_날짜) — date — NOT NULL
Product (상품)
- product_id (상품_아이디) — int — 기본 키 — NOT NULL
- product_type (상품_종류) — varchar — NOT NULL
- product_name (상품_이름) — barchar — NOT NULL
- product_price (상품_금액) — int — NOT NULL
User (고객)
- user_id (고객_아이디) — int — 기본 키 — NOT NULL
- user_phone_num (고객_전화번호) — char — NOT NULL
- user_address (고객_주소) — varchar — NOT NULL