project3

Tables (8)

book (책 테이블)

  • book_ID (책ID) — int — Primary key
  • book_title (책 제목) — text
  • book_price (책 가격) — int
  • book_image (책 이미지 경로)

buyhistory (구매이력 테이블)

  • buy_ID (구매상품 ID) — int — Primary key
  • user_id (유저 아이디) — text — Foreign key → users.user_id
  • buy_uname (구매자 이름) — text
  • buy_uphone (구매자 전화번호) — text
  • buy_address (구매자 배송주소) — text
  • buy_date (주문 일자) — date
  • book_ID (책ID) — int — Foreign key → book.book_ID
  • product_ID (상품ID) — int — Foreign key → product.product_ID
  • buy_ea (주문 갯수) — int

cart (장바구니 테이블)

  • cart_ID (장바구니 ID) — int — Primary key
  • user_id (유저 아이디) — text — Foreign key → users.user_id
  • product_ID (상품ID) — int — Foreign key → product.product_ID
  • book_ID (책ID) — int — Foreign key → book.book_ID

comment (댓글 테이블)

  • comment_ID (댓글 ID) — int — Primary key
  • diary_ID (일기장 ID) — int — Foreign key → diary.diary_ID
  • comment_content (댓글 내용) — text
  • comment_date (댓글 작성일) — date
  • user_id (유저 아이디) — text — Foreign key → users.user_id

diary (일기장 테이블)

  • diary_ID (일기장 ID) — int — Primary key
  • diary_content (다이어리 내용) — text
  • diary_hit (다이어리 조회수) — int
  • diary_date (다이어리 작성일) — timestamp
  • diary_image (다이어리 이미지 경로) — text
  • user_id (유저 아이디) — text — Foreign key → users.user_id

liked (좋아요 테이블)

  • liked_ID (좋아요 ID) — int — Primary key
  • diary_ID (일기장 ID) — int — Foreign key → diary.diary_ID
  • user_id (유저 아이디) — text — Foreign key → users.user_id

product (상품 테이블)

  • product_ID (상품ID) — int — Primary key
  • product_title (상품 제목) — text
  • product_price (상품 가격) — int
  • product_image (상품 이미지 경로) — text
  • product_thumbnail (상품 썸네일 경로) — text
  • product_categori (상품 카테고리) — text

users (유저 테이블)

  • user_id (유저 아이디) — text — Primary key
  • user_password (유저 비밀번호) — text
  • user_name (유저 이름) — text
  • user_birth (유저 생년월일) — date
  • user_address (유저 주소) — text
  • user_phone (유저 전화번호) — int
  • user_gubun (유저 구분) — int
  • user_mile (유저 보유 마일리지) — int
  • user_date (아이디 생성일자) — date
  • user_delete (아이디 삭제요청일자) — date
  • user_nickname (유저 닉네임) — text
  • user_email (유저 이메일) — text