TesteMarketer

테이블 (7)

reviews_hashtags

  • 리뷰아이디 (id2) — int — 외래 키 → 리뷰.리뷰아이디 — NOT NULL — unsigned,Primary Key
  • 해시태그 아아다 (id3) — SERIAL — 외래 키 → 해시태그.해시태그 아아다 — NOT NULL
  • 리뷰아이디 (reviews_id) — SERIAL — NOT NULL
  • 해시태그 아이디 (Field) — SERIAL — NOT NULL

댓글 (comments)

  • 리뷰아이디 (id) — int — 기본 키 — NOT NULL — unsigned,Primary Key
  • 댓글내용 (comment_text) — char(100) — NOT NULL — 댓글 내용
  • 댓글날짜 (comment_date) — char(100) — NOT NULL — 댓글날짜
  • 유저아이디 (user_id) — int — 외래 키 → 회원.유저아이디 — NOT NULL — unsigned,Foreign Key
  • 포스트아이디 (post_id) — int — 외래 키 → 리뷰포스트.포스트아이디 — NOT NULL — unsigned,Foreign Key

리뷰 (reviews)

  • 리뷰아이디 (id) — int — 기본 키 — NOT NULL — unsigned,Primary Key
  • 식당아이디 (restaurant_id) — int — NOT NULL — Foreign Key, Restaurants.id
  • 리뷰내용 (review_text) — char(200) — NOT NULL — 리뷰내용
  • 리뷰날짜 (review_date) — char(100) — NOT NULL — 리뷰날짜
  • 유저아이디 (user_id) — int — 외래 키 → 회원.유저아이디 — NOT NULL — unsigned,Foreign Key

리뷰포스트 (posts)

  • 포스트아이디 (post_id) — int — 기본 키 — NOT NULL — unsigned,Primary Key
  • 제목 (title) — char(100) — NOT NULL — 포스트제목
  • 내용 (content) — char(100) — NOT NULL — 포스트내용
  • 포스트날짜 (post_date) — char(100) — NOT NULL — 포스트날짜
  • 유저아이디 (user_id) — int — 외래 키 → 회원.유저아이디 — NOT NULL — unsigned,Foreign Key
  • 식당아이디 (restaurants_id) — int — 외래 키 → 식당.식당아이디 — NOT NULL — unsigned,Foreign Key

식당 (restaurants)

  • 식당아이디 (restaurants_id) — int — 기본 키 — NOT NULL — unsigned,Primary Key
  • 이름 (restaurants_name) — char(100) — NOT NULL — 식당이름
  • 식당주소 (address) — char(100) — NOT NULL — 식당주소
  • 식당전화번호 (phone) — char(100) — NOT NULL — 식당전화번호
  • 오픈시간 (opening_hours) — char(100) — NOT NULL — 식당오픈시간
  • 별점 (rating) — float — NOT NULL — 식당별점
  • 맛단계 (taste_level) — int — NOT NULL — 맛단계
  • 식당사진 (image) — NOT NULL — 식당사진

해시태그 (hashtags)

  • 해시태그 아아다 (id) — SERIAL — 기본 키 — NOT NULL
  • 내용 (contents) — VARCHAR(32) — NOT NULL

회원 (users)

  • 유저아이디 (user_id) — int — 기본 키 — NOT NULL — unsigned,Primary Key,auto_increment
  • 이름 (username) — char(100) — NOT NULL — 회원 이름
  • 이메일 (email) — char(100) — NOT NULL — 회원 이메일
  • 비밀번호 (password) — char(100) — NOT NULL — 회원 비밀번호
  • 전화번호 (phonenumber) — char(50) — NOT NULL — 회원 전화번호