latte_4team
Tables (4)
Order (주문 테이블)
- 아이디 (id) — Long — Primary key — NOT NULL
- 처리 상태 (status) — String — NOT NULL
- 주문시간 (ordered_at) — LocalDateTime — NOT NULL
- 유저 아이디 (user_id) — Long — Foreign key → User.아이디 — NOT NULL
- Field
OrderProduct (주문 상세 테이브)
- 아이디 (id) — Long — Primary key — NOT NULL
- 개수 (quantity) — Long — NOT NULL
- 상품 아이디 (product_id) — Long — Foreign key → Product.아이디 — NOT NULL
- 주문 아이디 (order_id) — Long — Foreign key → Order.아이디 — NOT NULL
Product (상품 테이블)
- 아이디 (id) — Long — Primary key — NOT NULL
- 상품명 (name) — String — NOT NULL
- 카테고리 (category) — String — NOT NULL
- 가격 (price) — Long — NOT NULL
User (회원 테이블)
- 아이디 (id) — Primary key — NOT NULL
- 이메일 (email) — String — NOT NULL
- 주소 (address) — String — NOT NULL
- 우편번호 (post_code) — String — NOT NULL