report

Tables (12)

AchievementReward (보상 조건)

  • achievement_id (보상 식별코드) — bigint — Primary key — NOT NULL
  • required_missions (보상 미션 개수) — INT
  • region (해당 지역) — VARCHAR(100)

Food (음식)

  • food_id (음식 식별코드) — bigint — Primary key — NOT NULL
  • food_name (음식 이름) — VARCHAR(100)

Inquery (1:1문의)

  • inquiry_id (문의 식별코드) — bigint — Primary key — NOT NULL
  • user_id (사용자 식별코드) — bigint — Foreign key → User.user_id — NOT NULL
  • inquiry_title (문의 제목) — VARCHAR(100)
  • content (문의 내용) — VARCHAR(200)
  • status (답변 상태) — boolean
  • created_at (문의 작성 시간) — datetime
  • deleted_at (문의 삭제 시간) — datetime

InqueryAnswer (1:1문의 답변)

  • answer_id (문의 답변 식별코드) — bigint — Primary key — NOT NULL
  • inquiry_id (문의 식별코드) — bigint — Foreign key → Inquery.inquiry_id — NOT NULL
  • user_id (사용자 식별코드) — bigint — Foreign key → Inquery.user_id — NOT NULL
  • content (문의 답변 내용) — VARCHAR(200)
  • created_at (답변 작성 시간) — datetime
  • deleted_at (답변 삭제 시간) — datetime

Mission (미션)

  • mission_id (미션 식별코드) — bigint — Primary key
  • restaurant_id (음식점 식별 번호) — bigint — Foreign key → restaurant.restaurant_id — NOT NULL
  • title (미션 제목) — VARCHAR(100)
  • description (미션 설명) — VARCHAR(200)
  • reward (미션 보상) — INT

MissionReview (미션 리뷰)

  • review_id (리뷰 식별코드) — bigint — Primary key — NOT NULL
  • mission_id (미션 식별코드) — bigint — Foreign key → UserMission.mission_id
  • user_id (사용자 식별코드) — bigint — Foreign key → UserMission.user_id — NOT NULL
  • restaurant_id (음식점 식별 번호) — bigint — Foreign key → UserMission.restaurant_id — NOT NULL
  • content (리뷰 내용) — VARCHAR(200)
  • rating (별점) — INT
  • photo (리뷰 사진) — VARCHAR(200)
  • created_at (리뷰 작성 시간) — datetime
  • updated_at (리뷰 수정 시간) — datetime
  • deleted_at (리뷰 삭제 시간) — datetime

User (사용자)

  • user_id (사용자 식별코드) — bigint — Primary key — NOT NULL
  • user_name (사용자 이름) — VARCHAR(50)
  • email (이메일) — VARCHAR(100)
  • password (비밀번호) — VARCHAR(100)
  • gender (성별) — enum
  • birth (생년월일) — datetime
  • address (주소) — VARCHAR(200)
  • created_at (계정 생성 시간) — datetime
  • deleted_at (계정 탈퇴 시간) — datetime

UserAchievement (사용자 달성 기록)

  • achievement_id (보상 식별코드) — bigint — Foreign key → AchievementReward.achievement_id — NOT NULL
  • user_id (사용자 식별코드) — bigint — Foreign key → User.user_id — NOT NULL
  • achieved_at (달성 기록 시간) — datetime

UserFood (사용자가 선호하는 음식)

  • user_id (사용자 식별코드) — bigint — Foreign key → User.user_id — NOT NULL
  • food_id (음식 식별코드) — bigint — Foreign key → Food.food_id — NOT NULL

UserMission (유저별 미션 진행)

  • mission_id (미션 식별코드) — bigint — Foreign key → Mission.mission_id
  • user_id (사용자 식별코드) — bigint — Foreign key → User.user_id — NOT NULL
  • restaurant_id (음식점 식별 번호) — bigint — Foreign key → Mission.restaurant_id — NOT NULL
  • complete_id (사장님 구분 번호) — INT
  • status (진행 상태) — boolean
  • start_date (시작 시간) — datetime
  • end_date (완료 시간) — datetime

UserPoint (유저 포인트)

  • point_id (포인트 식별코드) — bigint — Primary key — NOT NULL
  • mission_id (미션 식별코드) — bigint — Foreign key → UserMission.mission_id
  • user_id (사용자 식별코드) — bigint — Foreign key → UserMission.user_id — NOT NULL
  • restaurant_id (음식점 식별 번호) — bigint — Foreign key → UserMission.restaurant_id — NOT NULL
  • total_point (총 포인트) — INT
  • created_at (포인트 획득 시간) — datetime

restaurant (음식점)

  • restaurant_id (음식점 식별 번호) — bigint — Primary key — NOT NULL
  • restautant_name (음식점 이름) — VARCHAR(50)
  • restaurant_address (음식점 주소) — VARCHAR(100)
  • latitude (음식점 위도) — float
  • longitude (음식점 경도) — float