번개장터 ERD
테이블 (12)
결제 (payment)
- 결제ID (payment_id) — bigint — 기본 키 — NOT NULL
- 상품ID (product_id) — bigint — 외래 키 → 상품.상품ID — NOT NULL
- 상점ID (store_id) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- 주소ID (address_id) — bigint — 외래 키 → 주소.주소ID
- 택배 (parcel) — bit — NOT NULL
- 결제방법 (payment_method) — varchar(255) — NOT NULL
- 요청사항 (request) — varchar(255)
- 배달비 (delivery_charge) — integer — NOT NULL
- 총가격 (total_price) — integer — NOT NULL
- created_date — datetime
- modified_date — datetime
- status — varchar(255) — NOT NULL
본 상품 (watch)
- 상품ID (product_id) — bigint — 외래 키 → 상품.상품ID — NOT NULL
- 상점ID (store_id) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- created_date — datetime
- modified_date — datetime
- status — varchar(255) — NOT NULL
상점 (store)
- 상점ID (store_id) — bigint — 기본 키 — NOT NULL
- 생일 (birth_date) — varchar(7)
- 이름 (name) — varchar(255)
- 전화번호 (phone) — varchar(11)
- 상점이름 (store_name) — varchar(255)
- 상점사진 (store_picture) — varchar(255)
- 포인트 (point) — integer
- 생성일 (created_date) — datetime
- 수정일 (modified_date) — datetime
- 상태 (status) — varchar(255) — NOT NULL
상품 (product)
- 상품ID (product_id) — bigint — 기본 키 — NOT NULL
- 상점ID (store_id2) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- 카테고리 (category) — varchar(255)
- 이름 (name) — varchar(255) — NOT NULL
- 가격 (price) — integer — NOT NULL
- 내용 (content) — varchar(255) — NOT NULL
- 수량 (count) — integer
- 안전결제 (safe_payment) — bit — NOT NULL
- 배송비포함여부 (include_delivery_charge) — bit — NOT NULL
- 중고 (used) — bit — NOT NULL
- 교환가능 (exchange) — bit — NOT NULL
- 생성일 (created_date) — datetime
- 수정일 (modified_date) — datetime
- 상태 (status) — varchar(255) — NOT NULL
상품 이미지 (product_image)
- 상품이미지ID (product_image_id) — bigint — 기본 키 — NOT NULL
- 상품ID (product_id) — bigint — 외래 키 → 상품.상품ID — NOT NULL
- 이미지주소 (image_address) — varchar(255)
- created_date — datetime
- modified_date — datetime
- status — varchar(255) — NOT NULL
주소 (address)
- 주소ID (address_id) — bigint — 기본 키 — NOT NULL
- 상점ID (store_id) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- 주소 (content) — varchar(255) — NOT NULL
- 기본주소 (default_address) — bit — NOT NULL
- 이름 (name) — varchar(255) — NOT NULL
- 전화번호 (phone) — varchar(11) — NOT NULL
- 생성일 (created_date) — datetime
- 수정일 (modified_date) — datetime
- 상태 (status) — varchar(255) — NOT NULL
찜 (dibs)
- 상품ID (product_id) — bigint — 외래 키 → 상품.상품ID — NOT NULL
- 상점ID (store_id) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- created_date — datetime
- modified_date — datetime
- status — varchar(255) — NOT NULL
채팅 (chatting)
- 채팅ID (chatting_id) — bigint — 기본 키 — NOT NULL
- 채팅방ID (chatting_room_id) — bigint — 외래 키 → 채팅방.채팅방ID — NOT NULL
- 상점ID (store_id) — bigint — NOT NULL
- 내용ID (content) — varchar(255)
- created_date — datetime
- modified_date — datetime
- status — varchar(255) — NOT NULL
채팅방 (chatting_room)
- 채팅방ID (chatting_room_id) — bigint — 기본 키 — NOT NULL
- 상품ID (product_id) — bigint — 외래 키 → 상품.상품ID — NOT NULL
- 판매자ID (seller_id) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- 구매자ID (purchaser_id) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- created_date — datetime
- modified_date — datetime
- status — varchar(255) — NOT NULL
태그 (tag)
- 태그ID (tag_id) — bigint — 기본 키 — NOT NULL
- 상품ID (product_id2) — bigint — 외래 키 → 상품.상품ID — NOT NULL
- 이름 (name) — varchar(255) — NOT NULL
- created_date — datetime
- modified_date — datetime
- status — varchar(255) — NOT NULL
팔로우 (follow)
- 팔로우ID (follow_id) — bigint — 기본 키 — NOT NULL
- 팔로워하는사람 (follower_id) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- 팔로우받는사람 (followee_id) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- created_date — datetime
- modified_date — datetime
- status — varchar(255) — NOT NULL
후기 (review)
- 후기ID (review_id) — bigint — 기본 키 — NOT NULL
- 상품ID (product_id) — bigint — 외래 키 → 상품.상품ID — NOT NULL
- 상점ID (store_id) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- 작성자ID (reviewer_id) — bigint — 외래 키 → 상점.상점ID — NOT NULL
- 결제ID (payment_id) — bigint — 외래 키 → 결제.결제ID — NOT NULL
- 별점 (rating) — double — NOT NULL
- 내용 (content) — varchar(255) — NOT NULL
- created_date — datetime
- modified_date — datetime
- status — varchar(255) — NOT NULL