SHOWMEYOURBOOK

Tables (6)

Book(post) (게시글)

  • 게시글(책) 식별자 (post_ID) — Primary key — NOT NULL
  • 게시글 제목 (title)
  • 게시글 내용 (content)
  • 책 사진 (bookimage_Url)
  • 게시물 등록일자 (created_At)
  • 작성자(User.user_ID참조) (user_ID)

ChatMessage (채팅방)

  • 메시지 식별자 (message_ID) — Primary key — NOT NULL
  • 채팅방(ChatRoom.chatRoom_ID 참조) (chatRoom_ID)
  • 보낸 사람(User.user_ID참조) (sender_ID)
  • 받는 사람(User.user_ID참조) (receiver_ID)
  • 채팅 내용 (message)
  • 보낸 시간 (created_At)

ChatRoom (채팅 목록)

  • 채팅방 식별자 (chatRoom_ID) — Primary key — NOT NULL
  • 송신자(User.user_ID 참조) (buyer_ID)
  • 수신자(User.user_ID 참조) (seller_ID)
  • 거래 대상 게시글(Book.post_ID참조) (post_ID)

Favorite (찜목록)

  • 관심목록 식별자 (favorite_ID) — Primary key — NOT NULL
  • 사용자(User.user_ID참조) (user_ID)
  • 게시글(Book.post_ID참조) (post_ID)

Trade (거래)

  • 거래 식별자 (trade_ID) — Primary key — NOT NULL
  • 거래 게시글(Book.post_ID참조) (post_ID)
  • 책 받는 사람(User.user_ID참조) (buyer_ID)
  • 책 주는 사람(User.user_ID참조) (seller_ID)
  • 거래 방식(택배/직접 등) (tradeMethod)
  • 거래 캠퍼스 (campus)
  • 거래 장소(캠퍼스) (place)
  • 거래 날짜 (tradeDate)
  • 거래 시간 (tradeTime)

User (사용자)

  • 사용자 고유 식별자 (user_ID) — Primary key — NOT NULL
  • 사용자 이름 (name)
  • 비밀번호 (password)
  • 학번 (student_ID)
  • 전화번호 (phoneNumber)
  • 소속 캠퍼스 (campus)
  • 학교 이메일 주소 (school_email)