yj2
테이블 (19)
1 (BoughtProduct)
- Key (boughtIdx) — int — 기본 키 — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key
- Key (productIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (sellerIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (boughtAt) — timestamp — NOT NULL
1 (ShoppingCart)
- Key (cartIdx) — int — 기본 키 — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (productIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (sellerIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (status) — varchar(10) — NOT NULL — EXIST = 장바구니에 있음 NONE = 장바구니에 없다 REGULAR = 정기 배송이다
- Field (createdAt) — timestamp — NOT NULL
1 (PickProduct)
- Key (pickIdx) — int — 기본 키 — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (productIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (sellerIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (status) — varchar(10) — NOT NULL — EXIST = 찜했다 NONE = 찜 안했다
- Field (createdAt) — timestamp — NOT NULL
1 (Review)
- Key (reviewIdx) — int — 기본 키 — NOT NULL
- Key (productIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (sellerIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (starRating) — int
- Field2 (content) — text
- Field3 (helpfulNum) — int
- Field (status) — varchar(10) — NOT NULL
- Field (createdAt) — timestamp — NOT NULL
- Field (updatedAt) — datetime — NOT NULL
1 (ReviewImg)
- Key (reviewImgmgIdx) — int — 기본 키 — NOT NULL
- Key (reviewIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (productIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (sellerIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (image) — text
1 (Product)
- Key (productIdx) — int — 기본 키 — NOT NULL
- Key (sellerIdx) — int — 외래 키 → Untitled3.Key — NOT NULL
- Field6 (title) — varchar(25) — NOT NULL
- Field (content) — text — NOT NULL
- Field (price) — int — NOT NULL
- 판매량 (saleVolume) — int
- Field (deliveryType) — varchar(15) — NOT NULL — normal = 일반 rocket = 로켓배송 fresh = 로켓프레시 direct = 로켓직구
- 남은 개수 (remainNum) — int — NOT NULL
- Field (createdAt) — timestamp — NOT NULL
- Field (updatedAt) — datetime — NOT NULL
- Key (categoryIdx) — int — 외래 키 → Untitled.Key — NOT NULL
1 (ProductImg)
- Key (productImgIdx) — int — 기본 키 — NOT NULL
- Key (productIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (sellerIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (image) — text
- Field (createdAt) — timestamp — NOT NULL
- Field (updatedAt) — datetime — NOT NULL
1 (User)
- Key (userIdx) — int — 기본 키 — NOT NULL
- Field2 (id) — varchar(15) — NOT NULL
- Field (password) — text — NOT NULL
- Field (name) — VARCHAR(12) — NOT NULL
- Field2 (email) — varchar(30) — NOT NULL
- Field3 (phoneNum) — varchar(15) — NOT NULL
- Field4 (address) — text — NOT NULL
- 쿠팡캐시 (point) — int
- Field6 (createdAt) — timestamp — NOT NULL
- Field7 (updatedAt) — datetime — NOT NULL
- 탈퇴 여부 (status) — varchar(10) — NOT NULL — NORMAL = 일반 회원 ROCKET = 로켓와우 회원 INACTIVE = 탈퇴 회원
Untitled (UserCouponMapping)
- Key (relationIdx) — int — 기본 키 — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key
- Key (couponIdx) — int — 외래 키 → Untitled.Key — NOT NULL
Untitled (UserCoupon)
- Key (couponIdx) — int — 기본 키 — NOT NULL
- Field (name) — varchar(15) — NOT NULL
- Field (code) — int — NOT NULL
- Field (remainTime) — datetime — NOT NULL — 0이면 사용 못하도록 쿼리문
- Field (usedStatus) — varchar(1)
- Field (createdAt) — timestamp — NOT NULL
Untitled (Category)
- Key (categoryIdx) — int — 기본 키 — NOT NULL
- Field (name) — varchar(20)
- Field (level) — varchar(1) — NOT NULL — 1 = 대분류 2 = 중분류 3 = 소분류
Untitled3 (Seller)
- Key (sellerIdx) — int — 기본 키 — NOT NULL
- Field (password) — text — NOT NULL
- Field2 (address) — text — NOT NULL
- Field3 (phoneNum) — varchar(15) — NOT NULL
- Field4 (businessType) — varchar(15) — NOT NULL
- Field (account) — varchar(30) — NOT NULL
- Field (trustPoint) — int — NOT NULL — 일정 점수 미만이 되면 seller 자격을 박탈당한다.
- Field (status) — varchar(15) — NOT NULL — Active = 판매자 Inactive = 탈퇴 판매자 blackSeller = trushPoint가 낮아져서 판매자 자격을 잃은 상태
- Field (createdAt) — timestamp — NOT NULL
- Field (updatedAt) — datetime — NOT NULL
Untitled4 (ShowProduct)
- Key (userIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (productIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (sellerIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (sawAt) — timestamp — NOT NULL
Untitled8 (InquiryImg)
- Key (inquiryImgIdx) — int — 기본 키 — NOT NULL
- Key (inquiryIdx) — int — 외래 키 → 문의사항.Key — NOT NULL
- Key (userIdx) — int — 외래 키 → 문의사항.Key — NOT NULL
- Field (image) — text
- Field (createdAt) — timestamp — NOT NULL
- Field (updatedAt) — datetime — NOT NULL
검색기록 (searchHisroty)
- Key (searchHistoryIdx) — int — 기본 키 — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (text) — varchar(40) — NOT NULL
- Field (createdAt) — timestamp — NOT NULL
광고 동의 사항 (UserAdAgree)
- Key (adAgreeIdx) — int — 기본 키 — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (agreeEmail) — varchar(15) — NOT NULL — Agree = 동의 Disagree = 비동의
- Field (agreePhoneNum) — varchar(15) — NOT NULL
- Field (agreePush) — varchar(15) — NOT NULL
문의사항 (Inquiry)
- Key (inquiryIdx) — int — 기본 키 — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (title) — varchar(20) — NOT NULL
- Field (context) — text — NOT NULL
- Field2 (category) — varchar(20) — NOT NULL
- Field (createdAt) — timestamp — NOT NULL
- Field (updatedAt) — datetime — NOT NULL
배달 중인 상품 (Delivering)
- Key (deliveringIdx) — int — 기본 키 — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (productIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (sellerIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (createdAt) — timestamp — NOT NULL
- Field (estimatedArrival) — datetime — 예상 도착시간
사용자 결제 디테일 (Pay)
- Key (payIdx) — int — 기본 키 — NOT NULL
- Key (userIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (productIdx) — int — 외래 키 → 1.Key — NOT NULL
- Key (sellerIdx) — int — 외래 키 → 1.Key — NOT NULL
- Field (baseName) — varchar(10)
- Field (baseAdress) — text
- Field (basePhoneNum) — varchar(20)
- Field (request) — 배달 요청사항
- Field2 (anotherAddress) — text — 추가 주소
- Field (anotherCredit) — text — 추가 카드
- 받는 사람 (anotherName) — varchar(10)