Ecommerce
Tables (6)
Cart (장바구니)
- id (장바구니 식별자) — bigint — Primary key — NOT NULL
- total_product_quantitiy (장바구니 담긴 상품 개수) — int
- created_at (생성 일자) — LocalDateTime
- updated_at (수정 일자) — LocalDateTime
- member_id (회원 식별자) — bigint — Foreign key → Member.id — NOT NULL
- product_id (상품 식별자) — bigint — Foreign key → Product.id — NOT NULL
Member (회원)
- id (회원 식별자) — bigint — Primary key — NOT NULL
- member_id (회원 아이디) — varchar(50)
- member_name (회원 이름) — varchar(100)
- email (회원 이메일) — varchar(255)
- password (회원 비밀번호) — varchar(255)
- phone_number (회원 전화번호) — varchar(30)
- address (회원 주소) — varchar(255)
- role (회원 구분) — varchar(10)
- login_type (회원 타입) — varchar(10)
- created_at (생성 일자) — LocalDateTime
- updated_at (수정 일자) — LocalDateTime
Order (주문)
- id (주문 식별자) — bigint — Primary key — NOT NULL
- total_price (총 주문 가격) — int
- status (주문 상태) — varchar(10)
- order_date (주문 일자) — LocalDateTime
- created_at (생성 일자) — LocalDateTime
- updated_at (수정 일자) — LocalDateTime
Order Item (주문 상품)
- id (주문 상품 식별자) — bigint — Primary key — NOT NULL
- product_price (주문 상품 가격) — int
- product_quantitiy (주문 상품 수) — int
- created_at (생성 일자) — LocalDateTime
- updated_at (수정 일자) — LocalDateTime
- order (주문 식별자) — bigint — Foreign key → Order.id — NOT NULL
Product (상품)
- id (상품 식별자) — bigint — Primary key — NOT NULL
- product_name (상품명) — varchar(255)
- description (상품 설명) — text
- stock_quantity (상품 재고 수) — int
- price (상품 가격) — demical
- status (상품 상태) — varchar(10)
- rating (상품 평점) — demical
- created_at (생성 일자) — LocalDateTime
- updated_at (수정 일자) — LocalDateTime
- member_id (회원 식별자) — bigint — Foreign key → Member.id — NOT NULL
Review (리뷰)
- id (리뷰 식별자) — bigint — Primary key — NOT NULL
- content (리뷰 내용) — text
- rating (리뷰 별점) — demical
- created_at (생성 일자) — LocalDateTime
- updated_at (수정 일자) — LocalDateTime
- member_id (회원 식별자) — bigint — Foreign key → Member.id — NOT NULL
- product_id (상품 식별자) — bigint — Foreign key → Product.id — NOT NULL