E-commerce
Tables (6)
Order (주문)
- 주문ID (order_id) — BIGINT — Primary key — NOT NULL
- 유저ID (user_id) — BIGINT — Foreign key → User.유저ID — NOT NULL
- 주문일 (order_date) — TIMESTAMP
- 주문 상태 (status) — VARCHAR(50)
- 총 가격 (total_price) — INT
- 생성일자 (created_at) — TIMESTAMP
- 수정일자 (updated_at) — TIMESTAMP
OrderItem (주문 상품)
- 상품ID (product_id) — BIGINT — Foreign key → Product.상품ID — NOT NULL
- 주문ID (order_id) — BIGINT — Foreign key → Order.주문ID — NOT NULL
- 수량 (quantity) — INT
- 가격 (price) — INT
Product (상품)
- 상품ID (product_id) — BIGINT — Primary key — NOT NULL
- 상품명 (name) — VARCHAR(255)
- 상품 설명 (description) — TEXT
- 가격 (price) — INT
- 재고 수량 (stock_quantity) — INT
- 생성일자 (created_at) — TIMESTAMP
- 수정일자 (updated_at) — TIMESTAMP
User (사용자)
- 유저ID (user_id) — BIGINT — Primary key — NOT NULL
- 이름 (name) — VARCHAR(255)
- 이메일 (email) — VARCHAR(255)
- 비밀번호 (password) — VARCHAR(255)
- 핸드폰 번호 (phone_number) — VARCHAR(20)
- 주소 (address) — VARVHAR(255)
- 이메일 검증여부 (email_verified) — BOOLEAN
- 생성일자 (created_at) — TIMESTAMP
- 수정일자 (updated_at) — TIMESTAMP
Wishlist (장바구니)
- 장바구나ID (wishlist_id) — BIGINT — Primary key — NOT NULL
- 유저ID (user_id) — BIGINT — Foreign key → User.유저ID — NOT NULL
- 생성일자 (created_at) — TIMESTAMP
- 수정일자 (updated_at) — TIMESTAMP
WishlistItem (장바구니 상품)
- 장바구나ID (wishlist_id) — BIGINT — Foreign key → Wishlist.장바구나ID — NOT NULL
- 상품ID (product_id) — BIGINT — Foreign key → Product.상품ID — NOT NULL
- 수량 (quantity) — INT
- 가격 (price) — INT