상품 서비스
테이블 (8)
상품 (product)
- 아이디 (id) — Bigint — 기본 키 — NOT NULL
- 상품 이름 (name) — varchar(200)
- 상태 (status) — varchar(30)
- 상품 설명 (description) — varchar(200)
- 대표 변형 원본 가격 (original_price) — bigint
- 대표 변형 할인 가격 (loweset_price) — bigint
- 변형 최대 할인율 (max_discount_rate) — int
- 평점 (rating) — double
- 리뷰 개수 (review_count) — bigint
- 인기 점수 (popularity_score) — double
- 대표 이미지 (thumbnail) — varchar(512)
- 판매 개시일 (published_at) — datetime
- 판매 중지일 (sale_stopped_at) — datetime
- 생성일 (created_at) — datetime
- 수정일 (updated_at) — datetime
- 카테고리 아이디 (category_id) — BigInt — 외래 키 → 카테고리.아이디 — NOT NULL
상품 변형 (product_variant)
- 아이디 (id) — Bigint — 기본 키 — NOT NULL
- SKU (sku) — varchar(64)
- 할인 가격 (price) — bigint
- 원본 가격 (original_price) — bigint
- 할인 금액 (discount_amount) — bigint
- 할인율 (discount_rate) — int
- 재고 (stock_quantity) — int
- 상품 아이디 (product_id) — Bigint — 외래 키 → 상품.아이디 — NOT NULL
상품 변형 옵션 (product_variant_option)
- 아이디 (id) — Bigint — 기본 키 — NOT NULL
- Field
- 상품 변형 아이디 (product_variant_id) — Bigint — 외래 키 → 상품 변형.아이디 — NOT NULL
- 옵션 값 아이디 (option_value_id) — Bigint — 외래 키 → 옵션 값.아이디 — NOT NULL
- 생성일 (created_at) — datetime
- 수정일 (updated_at) — datetime
상품 옵션 (product_option)
- 아이디 (id) — Bigint — 기본 키 — NOT NULL
- 우선순위 (priority) — int
- 생성일 (created_at) — datetime
- 수정일 (updated_at) — datetime
- 상품 아이디 (product_id) — Bigint — 외래 키 → 상품.아이디 — NOT NULL
- 옵션 타입 아이디 (option_type_id) — Bigint — 외래 키 → 옵션 타입.아이디 — NOT NULL
상품 이미지 (product_image)
- 아이디 (id) — Bigint — 기본 키 — NOT NULL
- 이미지 URL (image_url) — varchar(512)
- 정렬 순서 (sort_order) — int
- 생성일 (created_at) — datetime
- 수정일 (updated_at) — datetime
- 상품 아이디 (product_id) — Bigint — 외래 키 → 상품.아이디 — NOT NULL
옵션 값 (option_value)
- 아이디 (id) — Bigint — 기본 키 — NOT NULL
- 이름 (name) — varchar(16)
- 옵션 타입 아이디 (option_type_id) — Bigint — 외래 키 → 옵션 타입.아이디 — NOT NULL
옵션 타입 (option_type)
- 아이디 (id) — Bigint — 기본 키 — NOT NULL
- 이름 (name) — varchar(16)
카테고리 (category)
- 아이디 (id) — BigInt — 기본 키 — NOT NULL
- 이름 (name) — varchar(100)
- 깊이 (depth) — int
- 이미지 (image_url) — varchar(512)
- 생성일 (created_at) — datetime
- 변경일 (updated_at) — datetime
- 부모 아이디 (parent_id) — BigInt — 외래 키 → 카테고리.아이디 — NOT NULL