Aboha

Tables (12)

abog_images (아보그 이미지)

  • 식별자 (id) — PK — Primary key — NOT NULL
  • 아보그 식별자 (abog_id) — FK — Foreign key → abogs.식별자
  • 이미지 URL (image_url) — NOT NULL

abog_likes (아보그 좋아요)

  • 식별자 (id) — PK — Primary key — NOT NULL
  • 사용자 식별자 (user_id) — FK — Foreign key → users.식별자
  • 아보그 식별자 (abog_id) — FK — Foreign key → abogs.식별자

abog_tags (아보그 태그)

  • 식별자 (id) — PK — Primary key — NOT NULL
  • 아보그 식별자 (abog_id) — FK — Foreign key → abogs.식별자
  • 태그 이름 (name) — NOT NULL

abogs (아보하 로그)

  • 식별자 (id) — PK — Primary key — NOT NULL
  • 사용자 식별자 (user_id) — FK — Foreign key → users.식별자
  • 관광지 식별자 (attraction_id) — FK — Foreign key → attractions.식별자
  • 제묵 (title) — NOT NULL
  • 내용 (content) — NOT NULL
  • 댓글 수 (comment_count) — NOT NULL
  • 좋아요수 (like_count) — NOT NULL
  • 게시 일자 (created_at) — NOT NULL
  • 최종 수정 일자 (updated_at) — NOT NULL
  • 삭제 여부 (is_deleted) — NOT NULL

attraction_likes (좋아요)

  • 식별자 (id) — PK — Primary key — NOT NULL
  • 사용자 식별자 (user_id) — FK — Foreign key → users.식별자
  • 관광지 식별자 (attraction_id) — FK — Foreign key → attractions.식별자

attractions (관광지)

  • 식별자 (no) — PK — Primary key — NOT NULL
  • 보조 식별자 (content_id)
  • 이름 (title)
  • 관광지 유형 식별자 (content_type_id) — FK — Foreign key → contenttypes.식별자
  • 시도 코드 (area_code) — FK — Foreign key → sidos.식별자
  • 구군 코드 (si_gun_gu_code) — FK — Foreign key → guguns.식별자
  • 이미지1 (first_image1)
  • 이미지2 (first_image2)
  • 지도 레벨 (map_level)
  • 위도 (latitude)
  • 경도 (longtitude)
  • 전화번호 (tel)
  • 주소1 (addr1)
  • 주소2 (addr2)
  • 홈페이지 (homepage)
  • 개요 (overview)
  • 조회수 (view_count) — NOT NULL
  • 좋아요수 (like_count) — NOT NULL
  • 리뷰수 (review_count) — NOT NULL
  • 리뷰 평점 합계 (rating_sum) — NOT NULL

comments (아보그 댓글)

  • 식별자 (id) — PK — Primary key — NOT NULL
  • 사용자 식별자 (user_id) — FK — Foreign key → users.식별자
  • 아보그 식별자 (abog_id) — FK — Foreign key → abogs.식별자
  • 부모 댓글 식별자 (parent_id) — FK — Foreign key → comments.식별자
  • 내용 (content)
  • 생성 일자 (created_at) — NOT NULL
  • 최종 수정 일자 (updated_at) — NOT NULL
  • 삭제 여부 (is_deleted) — NOT NULL

contenttypes (관광지 유형)

  • 식별자 (content_type_id) — PK — Primary key — NOT NULL
  • 이름 (content_type_name)

guguns (구군)

  • 식별자 (no) — PK — Primary key — NOT NULL
  • 시도 코드 (sido_code) — FK — Foreign key → sidos.식별자
  • 코드 (gugun_code)
  • 이름 (gugun_name)

reviews (리뷰)

  • 식별자 (id) — PK — Primary key — NOT NULL
  • 사용자 식별자 (user_id) — FK — Foreign key → users.식별자
  • 관광지 식별자 (attraction_id) — FK — Foreign key → attractions.식별자
  • 평점 (rating) — NOT NULL
  • 내용 (content) — NOT NULL
  • 생성 일자 (created_at) — NOT NULL
  • 최종 수정 일자 (updated_at) — NOT NULL
  • 삭제 여부 (is_deleted) — NOT NULL

sidos (시도)

  • 식별자 (no) — PK — Primary key — NOT NULL
  • 코드 (sido_code)
  • 이름 (sido_name)

users (사용자)

  • 식별자 (id) — PK — Primary key — NOT NULL
  • 이메일 (email) — UK — NOT NULL
  • 비밀번호 (password) — NOT NULL
  • 닉네임 (nickname) — UK — NOT NULL
  • 프로필 이미지 (profile_image_url)
  • 회원가입일자 (created_at) — NOT NULL
  • 최종수정일자 (updated_at) — NOT NULL
  • 탈퇴 여부 (is_deleted) — NOT NULL