고독한시식가

테이블 (3)

리뷰 (reviews)

  • 아이디 (id) — uuid — 기본 키 — NOT NULL
  • 식당아이디 (restaurant_id) — uuid — 외래 키 → 식당.아이디 — NOT NULL
  • 작성자아이디 (writer_id) — uuid — 외래 키 → 유저.아이디 — NOT NULL
  • 제목 (title) — unicode
  • 내용 (content) — unicode
  • 별점 (star) — number
  • 생성일시 (created_at) — date
  • 수정일시 (updated_at) — date
  • 삭제일시 (deleted_at) — date

식당 (restaurants)

  • 아이디 (id) — uuid — 기본 키 — NOT NULL
  • 카카오맵아이디 (kakaomap_id) — uuid
  • 위도 (latitude) — float
  • 경도 (longitude) — float
  • 생성일시 (created_at) — date
  • 수정일시 (updated_at) — date
  • 삭제일시 (deleted_at) — date

유저 (users)

  • 아이디 (id) — uuid — 기본 키 — NOT NULL
  • 카카오아이디 (kakao_id) — unicode
  • 이메일 (email) — unicode
  • 닉네임 (nickname) — unicode
  • 학과코드 (dept_code) — unicode
  • 학번 (student_year) — unicode
  • 성별 (sex) — enum
  • 생성일시 (created_at) — uuid
  • 수정일시 (updated_at) — uuid
  • 삭제일시 (deleted_at) — uuid