trip db생성

테이블 (11)

게시판 (board)

  • 번호 (bno) — notnull — 기본 키 — NOT NULL
  • 제목 (title) — notnull
  • 내용 (content) — notnull
  • 작성자 (writer) — notnull

게시판 댓글 (board_reply)

  • 번호 (rno) — notnull — 기본 키 — NOT NULL
  • 내용 (replytext) — notnull
  • 작성자 (writer) — notnull

관리자 (Admin)

  • 관리자ID (admin_id) — notnull — 기본 키 — NOT NULL
  • 관리자이름 (admin_name) — notnull
  • 관리자비밀번호 (admin_password) — notnull

여행 (Trip)

  • 여행id (trip_id) — notnull — 기본 키 — NOT NULL
  • 여행지이름 (trip_name) — notnull
  • 여행지설명 (description) — notnull
  • 위치 (location) — notnull
  • 평점 (rating) — notnull
  • 여행지카테고리 (category) — notnull
  • 추천여부 (recommended) — notnull

여행사용자평가 (Review)

  • 평가고유식별자 (review_id) — notnull — 기본 키 — NOT NULL
  • 여행지id (destination_id) — notnull
  • 사용자이름 (review_user_name) — notnull
  • 평점 (rating) — notnull
  • 한줄평 (comment) — notnull

음식점 (Restaurant)

  • 음식점id (food_id) — notnull — 기본 키 — NOT NULL
  • 음식점이름 (food_name) — notnull
  • 음식점위치 (food_location) — notnull
  • 전화번호 (food_tel) — notnull

채팅방 (ChatRoom)

  • 채팅방ID (room_id) — notnull — 기본 키 — NOT NULL
  • 채팅방 이름 (room_name) — notnull

채팅방 메시지 (ChatMessage)

  • 메시지ID (chat_message_id) — notnull — 기본 키 — NOT NULL
  • 채팅방ID (chat_room_id) — notnull
  • 유저ID (user_id) — notnull
  • 메시지Text (chat_message_text) — notnull
  • 현재시간 (create_at) — notnulll

축제 (Festival)

  • 축제id (festival_id) — notnull — 기본 키 — NOT NULL
  • 축제이름 (festival_name) — notnull
  • 축제시작 (festival_start) — notnull
  • 축제종료 (festival_end) — notnull
  • 축제위치 (festival_location) — notnull
  • 축제설명 (festival_description) — notnull

축제사용자평가 (FestivalReiview)

  • 평가고유식별자 (festival_review_id) — notnull — 기본 키 — NOT NULL
  • 축제id (festival_destination_id) — notnull
  • 사용자이름 (festival_review_user_name) — notnull
  • 평점 (festival_rating) — notnull
  • 한줄평 (festival_comment) — notnull

회원폼 (Member)

  • 회원ID (id) — notnull — 기본 키 — NOT NULL
  • 회원이름 (name) — notnull
  • 비밀번호 (password) — notnull
  • 생년월일 (birthday) — notnull
  • 이메일 (email) — notnull
  • 전화번호 (phone_number) — notnull