team-05

테이블 (8)

Auth (메일 검증)

  • account (Field) — string — NOT NULL
  • code (Field3) — string — NOT NULL

Post (게시물)

  • post_id (PK) — BIGINT — 기본 키 — NOT NULL
  • platform (SNS 유형) — string(ENUM) — NOT NULL
  • title (제목) — VARCHAR(255) — NOT NULL
  • content (내용) — VARCHAR(255) — NOT NULL
  • hashtags (해시태그) — VARCHAR(255) — NOT NULL
  • view_count (조회 수) — INT
  • like_count (좋아요 수) — INT
  • share_count (공유 수) — INT
  • updated_at (수정일시) — DATE
  • created_at (생성일시) — DATE

Statistics (통계)

  • hashtag — VARCHAR(255)
  • user_id — BIGINT
  • date — DATE — NOT NULL
  • hour — INT
  • post_count — INT
  • view_count — INT
  • like_count — INT
  • share_count — INT

User (사용자)

  • user_id (PK) — BIGINT — 기본 키 — NOT NULL
  • account (계정) — VARCHAR(255) — NOT NULL
  • email (메일) — VARCHAR(255) — NOT NULL
  • password (비밀번호) — VARCHAR(255) — NOT NULL

리뷰 (Review)

  • review_id (PK) — 기본 키 — NOT NULL
  • restaurant_id (FK1) — 외래 키 → 식당.restaurant_id — NOT NULL
  • member_id (FK2) — 외래 키 → 사용자.member_id — NOT NULL
  • score (0~5 점수)
  • content (리뷰 내용)
  • created_at (리뷰 작성 시각)

사용자 (Member)

  • member_id (PK) — 기본 키 — NOT NULL
  • member_name (사용자 계정명(Unique)) — NOT NULL
  • password (비밀번호) — NOT NULL
  • latitude (사용자 위치의 위도)
  • longitude (사용자 위치의 경도)
  • use_lunch_recommendation (점심 추천 기능 활성화 유무) — NOT NULL
  • created_at (계정 생성 시각) — NOT NULL
  • updated_at (계정 업데이트 시각)

시군구 (Location)

  • location_id (PK) — 기본 키 — NOT NULL
  • do_si (도 / 시)
  • sgg (시군구)
  • latitude (위도)
  • longitude (경도)

식당 (Restaurant)

  • restaurant_id (PK) — 기본 키 — NOT NULL
  • name (음식점 이름) — NOT NULL
  • address (주소) — NOT NULL
  • latitude (위도)
  • longitude (경도)
  • rating (평점)
  • type (음식점의 유형)
  • business_status (영업상태)
  • created_at (데이터 생성 시각) — NOT NULL
  • updated_at (데이터 업데이트 시각)