해커톤
테이블 (10)
가게 (store)
- 식별자 (store_id) — not null — 기본 키 — NOT NULL
- 식별자 (market_id) — not null — 외래 키 → 시장.식별자 — NOT NULL
- 가게명 (store_name) — not null
- 카데고리 (category) — not null
- 도로명 주소 (road_address) — NOT NULL UNIQUE
- 지번 주소 (street_address) — NOT NULL UNIQUE
- 가게 영문명 (store_english) — not null
- 가게 이미지 (store_image) — nullable
리뷰 (review)
- 식별자 (review_id) — not null — 기본 키 — NOT NULL
- 식별자 (store_id) — not null — 외래 키 → 가게.식별자 — NOT NULL
- Key (market_id) — not null — 외래 키 → 가게.식별자 — NOT NULL
- 따봉수 (thumpsup) — NOT NULL DEFAULT 0
- 내용 (content) — not null
- 생성일자 (created_at) — NOT NULL DEFAULT CURRENT_TIMESTAMP
- 수정일자 (updated_at) — NOT NULL DEFAULT CURRENT_TIMESTAMP
- 태그 (tag) — not null
리뷰 좋아요 (Review Like)
- 식별자 (user_id) — NOT NULL UNIQUE — 외래 키 → 회원정보.식별자 — NOT NULL
- 식별자 (review_id) — not null — 외래 키 → 리뷰.식별자 — NOT NULL
- 식별자 (store_id) — not null — 외래 키 → 리뷰.식별자 — NOT NULL
- Key (market_id) — not null — 외래 키 → 리뷰.Key — NOT NULL
- 생성 시간 (created_at) — not null
메뉴 (menu)
- 메뉴 식별자 (menu_id) — not null — 기본 키 — NOT NULL
- 가게 식별자 (store_id) — not null — 외래 키 → 가게.식별자 — NOT NULL
- 시장 식별자 (market_id) — not null — 외래 키 → 가게.식별자 — NOT NULL
- 한국어 메뉴명 (korean) — not null
- 영어 메뉴명 (english) — not null
- 가격 (price) — not null
시장 (market)
- 식별자 (market_id) — not null — 기본 키 — NOT NULL
- 시장명 (market_name) — not null
- 시장 이미지 (market_image) — nullable
- 시장 영문명 (market_english) — not null
챗토픽 (chat topic)
- 챗토픽 식별자 (topic_id) — not null — 기본 키 — NOT NULL
- 카테고리 (category) — not null
- 토픽 (topic) — not null
- 토픽 설명 (caption) — nullable
태그 (tag)
- 태그 식별자 (tag_Id) — not null — 기본 키 — NOT NULL
- 피드백 식별자 (feedback_id) — not null — 외래 키 → 피드백.피드백 식별자 — NOT NULL
- 식별자 (user_id) — NOT NULL UNIQUE — 외래 키 → 피드백.식별자 — NOT NULL
- 경향 (polarity) — not null
- 태그 (tag) — not null
피드백 (feedback)
- 피드백 식별자 (feedback_id) — not null — 기본 키 — NOT NULL
- 식별자 (user_id) — NOT NULL UNIQUE — 외래 키 → 회원정보.식별자 — NOT NULL
- 좋아요 수 (thumbs) — notnull
- 내용 (comment) — nullable
회원정보 (User)
- 식별자 (user_id) — NOT NULL UNIQUE — 기본 키 — NOT NULL
- 이름 (user_name) — not null
- 닉네임 (nickname) — not null
- 이메일 (email) — NOT NULL UNIQUE — NOT NULL
- 비밀번호 (password) — not null
- 나이 (age) — NOT NULL
- 국적 (nationality) — NULLABLE
- 프로필 사진 (profile_image) — nullable
- 리워드 수 (reward_count) — NOT NULL DEFAULT 0
- 방문가게 수 (visited_count) — NOT NULL DEFAULT 0