mutsaERD
Tables (4)
Order (Untitled3)
- 아이디 (order_id) — BIGINT — Primary key — NOT NULL
- 아이디 (user_id) — BIGINT — Foreign key → User.아이디 — NOT NULL
- 주문 상태 (Status) — ENUM
- 배송지 (Delivery) — VARCHAR(100)
- 주문 일시 (Date) — INT
OrderItem (Untitled4)
- 주문 아이디, 상품 아이디 ((order_id, product_id)) — BIGINT,BIGINT — Primary key — NOT NULL
- 아이디 (order_id) — BIGINT — Foreign key → Order.아이디 — NOT NULL
- 상품아이디 (product_id) — BIGINT — Foreign key → Product.상품아이디 — NOT NULL
- 주문 수량 (order_Q) — INT
Product (Untitled2)
- 상품아이디 (product_id) — BIGINT — Primary key — NOT NULL
- 가격 (price) — int
- 상품명 (name) — String
- 수량 (quantity) — int
User (Untitled)
- 아이디 (user_id) — BIGINT — Primary key — NOT NULL
- 이름 (name) — String
- 이메일 (email) — VARCHAR(100)
- 전화번호 (phoneNum) — VARCHAR(20)