fishshop

테이블 (13)

거래내역 (Transaction)

  • 거래내역아이디 (transaction_id) — int — 기본 키 — NOT NULL
  • 펀딩아이디 (funding_id) — int — 외래 키 → 펀딩.펀딩아이디 — NOT NULL
  • 회원아이디 (user_id) — int — 외래 키 → 펀딩.회원아이디 — NOT NULL — auto_increment
  • 상품아이디 (product_id) — int — 외래 키 → 펀딩.상품아이디 — NOT NULL
  • 판매자식별자 (seller_id) — int — 외래 키 → 펀딩.판매자식별자 — NOT NULL
  • 거래날짜 (date) — datetime — NOT NULL

관리자 (Admin)

  • 관리자아이디 (admin_id) — int — 기본 키 — NOT NULL
  • 이름 (name) — string
  • 이메일 (email) — string
  • 번호 (phone_number) — string
  • 직책 (position) — string

기념일 (Anniversary)

  • 기념일아이디 (anniversary_id) — int — 기본 키 — NOT NULL
  • 회원아이디 (user_id) — int — 외래 키 → 회원.회원아이디 — NOT NULL — auto_increment
  • 기념일타입 (anniversary_type) — string — NOT NULL
  • 날짜 (date) — datetime — NOT NULL

리뷰 (Review)

  • 리뷰아이디 (review_id) — int — 기본 키 — NOT NULL
  • 회원아이디 (user_id) — int — 외래 키 → 회원.회원아이디 — NOT NULL — auto_increment
  • 상품아이디 (product_id) — int — 외래 키 → 상품.상품아이디 — NOT NULL
  • 판매자식별자 (seller_id) — int — 외래 키 → 상품.판매자식별자 — NOT NULL
  • 별점 (rating) — int — NOT NULL
  • 상품평 (comment) — string
  • 날짜 (review_date) — datetime — NOT NULL

배송 (Delivery)

  • 배송아이디 (delivery_id) — int — 기본 키 — NOT NULL
  • 거래내역아이디 (transaction_id) — int — 외래 키 → 거래내역.거래내역아이디 — NOT NULL
  • 펀딩아이디 (funding_id) — int — 외래 키 → 거래내역.펀딩아이디 — NOT NULL
  • 회원아이디 (user_id) — int — 외래 키 → 거래내역.회원아이디 — NOT NULL — auto_increment
  • 상품아이디 (product_id) — int — 외래 키 → 거래내역.상품아이디 — NOT NULL
  • 판매자식별자 (seller_id) — int — 외래 키 → 거래내역.판매자식별자 — NOT NULL
  • 배송상태 (status) — string
  • 예상배송날짜 (estimated_date) — datetime
  • 실제배송날짜 (delivery_date) — datetime

상품 (Product)

  • 상품아이디 (product_id) — int — 기본 키 — NOT NULL
  • 판매자식별자 (seller_id) — int — 외래 키 → 판매자.판매자식별자 — NOT NULL
  • 이름 (name) — string
  • 설명 (description) — string
  • 가격 (price) — int
  • 재고 (stock) — int
  • 카테고리 (category) — string
  • 이미지 (image_url) — string

알림 (Notification)

  • 알림아이디 (notificaation_id) — int — 기본 키 — NOT NULL
  • 회원아이디 (user_id) — int — 외래 키 → 회원.회원아이디 — NOT NULL — auto_increment
  • 내용 (message) — string — NOT NULL
  • 알림날짜 (date) — datetime — NOT NULL

위시리스트 (Wishlist)

  • 위시아이디 (wish_id) — int — 기본 키 — NOT NULL
  • 상품아이디 (product_id) — int — 외래 키 → 상품.상품아이디 — NOT NULL
  • 회원아이디 (user_id) — int — 외래 키 → 회원.회원아이디 — NOT NULL — auto_increment
  • 판매자식별자 (seller_id) — int — 외래 키 → 상품.판매자식별자 — NOT NULL

친구 (Friend)

  • 친구관계아이디 (friendship_id) — int — 기본 키 — NOT NULL
  • 회원아이디 (user_id1) — int — 외래 키 → 회원.회원아이디 — NOT NULL — auto_increment
  • 회원아이디2 (user_id2) — int — NOT NULL
  • 상태 (status) — string — 신청 , 거절, 차단 등 상태
  • 시작날짜 (start_date) — datetime — NOT NULL

판매자 (Seller)

  • 판매자식별자 (seller_id) — int — 기본 키 — NOT NULL
  • 이름 (name) — string
  • 이메일 (email) — string
  • 비밀번호 (password) — string
  • 사업자등록번호 (business_number) — string
  • 회사이름 (company_name) — string
  • 회사주소 (company_address) — string
  • 회사전화번호 (company_number) — string
  • 이미지 (image_url) — string
  • 은행계좌 (bank_no) — string
  • 은행이름 (bank_name) — string
  • 은행소유주 (bank_onwer) — string

펀딩 (Funding)

  • 펀딩아이디 (funding_id) — int — 기본 키 — NOT NULL
  • 회원아이디 (user_id) — int — 외래 키 → 회원.회원아이디 — NOT NULL — auto_increment
  • 상품아이디 (product_id) — int — 외래 키 → 상품.상품아이디 — NOT NULL
  • 판매자식별자 (seller_id) — int — 외래 키 → 상품.판매자식별자 — NOT NULL
  • 목표금액 (goal_amount) — int
  • 현재금액 (current_amount) — int
  • 시작날짜 (start_date) — datetime
  • 종료날짜 (end_date) — datetime

회원 (User)

  • 회원아이디 (user_id) — int — 기본 키 — NOT NULL — auto_increment
  • 이름 (name) — string
  • 이메일 (email) — string
  • 성별 (sex) — int
  • 생일 (birthday) — datetime
  • 주소 (address) — string
  • 번호 (phone) — string
  • 은행계좌 (bank_no) — string
  • 은행이름 (bank_name) — string
  • 은행소유주 (bank_owner) — string
  • 프로필이미지 (profile_image) — string
  • 카카오톡아이디 (kakao_id) — string
  • 생성날짜 (create_date) — datetime

후원 (Contribution)

  • 후원아이디 (contribution_id) — int — 기본 키 — NOT NULL
  • 후원자아이디 (user_id) — int — 외래 키 → 회원.회원아이디 — NOT NULL — auto_increment
  • 펀딩아이디 (funding_id) — int — 외래 키 → 펀딩.펀딩아이디 — NOT NULL
  • 회원아이디 (user_id2) — int — 외래 키 → 펀딩.회원아이디 — NOT NULL — auto_increment
  • 상품아이디 (product_id) — int — 외래 키 → 펀딩.상품아이디 — NOT NULL
  • 판매자식별자 (seller_id) — int — 외래 키 → 펀딩.판매자식별자 — NOT NULL
  • 금액 (amount) — int — NOT NULL
  • 날짜 (date) — datetime — NOT NULL