여행 동행

테이블 (6)

게시글 (post)

  • 게시글번호 (post_no) — int(20) — 기본 키 — NOT NULL
  • 게시판번호 (board_no) — int(10) — 외래 키 → 게시판.게시판번호 — NOT NULL
  • 사용자번호 (user_no) — int(10) — 외래 키 → 사용자.사용자번호 — NOT NULL
  • 소셜_가입번호 (social_no) — int(20) — 외래 키 → 사용자.소셜_가입번호 — NOT NULL
  • 게시글_제목 (post_title) — varchar(50)
  • 조회수 (post_view) — int(20)
  • 작성일 (post_date) — date

게시글내용 (post_body)

  • 게시글번호 (post_no) — int(20) — 외래 키 → 게시글.게시글번호 — NOT NULL
  • 게시판번호 (board_no) — int(10) — 외래 키 → 게시글.게시판번호 — NOT NULL
  • 사용자번호 (user_no) — int(10) — 외래 키 → 게시글.사용자번호 — NOT NULL
  • 소셜_가입번호 (social_no) — int(20) — 외래 키 → 게시글.소셜_가입번호 — NOT NULL
  • 게시글_내용 (post_body)

게시판 (board)

  • 게시판번호 (board_no) — int(10) — 기본 키 — NOT NULL
  • 제목 (board_title) — varchar(15)
  • 내용 (board_body) — text
  • 작성일 (board_date) — date
  • 조회수 (board_view)

댓글 (comment)

  • 댓글번호 (comm_no) — int(15) — 기본 키 — NOT NULL
  • 게시글번호 (post_no) — int(20) — 외래 키 → 게시글.게시글번호 — NOT NULL
  • 게시판번호 (board_no) — int(10) — 외래 키 → 게시글.게시판번호 — NOT NULL
  • 사용자번호 (user_no) — int(10) — 외래 키 → 게시글.사용자번호 — NOT NULL
  • 소셜_가입번호 (social_no) — int(20) — 외래 키 → 게시글.소셜_가입번호 — NOT NULL
  • 댓글내용 (comm_body) — text

사용자 (user)

  • 사용자번호 (user_no) — int(10) — 기본 키 — NOT NULL
  • 소셜_가입번호 (social_no) — int(20) — 외래 키 → 소셜로그인 api.소셜_가입번호 — NOT NULL
  • 실명 (user_name) — varchar(20)
  • 닉네임 (user_nickname) — varchar(20)
  • 이메일 (user_email) — varchar(30)
  • 패스워드 (user_pw) — varchr(20)
  • 연락처 (user_phone) — char(15)
  • 성별 (user_gender) — char(3)
  • 여행성향 (user_type) — char(30)
  • 회원가입일 (user_regdate) — date

소셜로그인 api (social_login)

  • 소셜_가입번호 (social_no) — int(20) — 기본 키 — NOT NULL
  • 소셜_타입(google, naver) (social_type) — varchar(30)
  • 소셜_id값 (social_id) — varchar(30)
  • 소셜_name값 (social_name) — varchar(30)
  • 소셜_nickname값 (social_nickname) — varchar(30)
  • 소셜_gender값 (social_gender) — varchar(10)