seatea_erd

Tables (8)

diagnosis_response

  • response_id — BIGINT — Primary key — NOT NULL
  • session_id — BIGINT — Foreign key
  • item_code — VARCHAR(255) — NOT NULL — 진단 문항 코드
  • answer_code — VARCHAR(255) — NOT NULL — 진단 답변 코드
  • created_at — DATETIME(6) — 생성일시
  • deleted_at — DATETIME(6) — 삭제일시
  • updated_at — DATETIME(6) — 수정일시

diagnosis_session

  • session_id — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key — NOT NULL
  • type_id — BIGINT — Foreign key
  • mode — ENUM('DETAIL','QUICK') — NOT NULL — 진단 모드
  • created_at — DATETIME(6) — 생성일시
  • deleted_at — DATETIME(6) — 삭제일시
  • updated_at — DATETIME(6) — 수정일시

member

  • member_id — BIGINT — Primary key — NOT NULL
  • email — VARCHAR(255) — NOT NULL — 이메일
  • password — VARCHAR(255) — NOT NULL — 비밀번호(해시)
  • nickname — VARCHAR(255) — NOT NULL — 낙내암
  • role — ENUM('ROLE_ADMIN','ROLE_MEMBER') — 사용자 권한
  • profile_image — VARCHAR(255) — 프로필 이미지 URL
  • provider_id — VARCHAR(255) — OAuth provider(kakao)
  • registration_id — VARCHAR(255) — OAuth privder user id
  • is_new_user — bit — NOT NULL — 신규 유저 여부
  • created_at — DATETIME(6) — 생성일시
  • deleted_at — DATETIME(6) — 삭제일시
  • updated_at — DATETIME(6) — 수정일시

member_recent_place

  • member_recent_place_id — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key
  • place_id — BIGINT — Foreign key
  • viewed_at — DATETIME(6) — 최근 조회 일시

member_saved_place

  • member_saved_place_id — BIGINT — Primary key — NOT NULL
  • member_id — BIGINT — Foreign key
  • place_id — BIGINT — Foreign key
  • created_at — DATETIME(6) — 생성일시

place

  • place_id — BIGINT — Primary key — NOT NULL
  • tasting_type_id — BIGINT — Foreign key
  • name — VARCHAR(255) — 장소명
  • address — VARCHAR(255) — 지번 주소
  • description — VARCHAR(255) — 장소 설명
  • note — VARCHAR(255) — 비고/메모
  • naver_place_id — BIGINT — 네이버 장소 ID
  • lat — decimal(11,7) — 위도
  • lng — decimal(11,7) — 경도
  • opening_hours — VARCHAR(255) — 영업시간
  • phone — VARCHAR(255) — 전화번호
  • road_address — VARCHAR(255) — 도로명 주소
  • thumbnail_image_url — VARCHAR(255) — 썸네일 이미지 URL
  • created_at — DATETIME(6) — 생성일시
  • deleted_at — DATETIME(6) — 삭제일시
  • updated_at — DATETIME(6) — 수정일시

refresh_token

  • refresh_id — BIGINT — Primary key — NOT NULL
  • token — VARCHAR(255) — NOT NULL — 리프레시 토큰
  • user_id — BIGINT — NOT NULL — 사용자 ID (논리 FK)

tasting_note_type

  • Tasting_Type_id — BIGINT — Primary key — NOT NULL
  • code — VARCHAR(255) — NOT NULL — 타입 코드
  • display_name — VARCHAR(255) — NOT NULL — 노출명
  • subtitle — VARCHAR(255) — 서브타이틀
  • description — VARCHAR(255) — 타입 설명
  • image_url — VARCHAR(255) — 이미지 URL
  • created_at — DATETIME(6) — 생성일시
  • deleted_at — DATETIME(6) — 삭제일시
  • updated_at — DATETIME(6) — 수정일시