Lupico

테이블 (11)

Untitled (mission_User)

  • Key (mission_user_id) — bigint — 기본 키 — NOT NULL
  • Key (user_id) — bigint — 외래 키 → 유저.Key — NOT NULL
  • Key (mission_id) — bigint — 외래 키 → 미션.Key — NOT NULL
  • Field (mission_status) — varchar(20)
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)

가게 (store)

  • Key (store_id) — bigint — 기본 키 — NOT NULL
  • Key (prefer_id) — bigint — 외래 키 → 음식 카테고리.Key — NOT NULL
  • Field (name) — varchar(40)
  • Field (score) — float
  • Field2 (created_at) — datetime(6)
  • Field3 (updated_at) — datetime(6)

가게 리스트 (store_list)

  • Key (store_list_id) — bigint — 기본 키 — NOT NULL
  • Key (store_id) — bigint — 외래 키 → 가게.Key — NOT NULL
  • Key (review_id) — bigint — 외래 키 → 리뷰.Key — NOT NULL
  • Field (created_at) — datime(6)
  • Field2 (updated_at) — daatime(6)

리뷰 (review)

  • Key (review_id) — bigint — 기본 키 — NOT NULL
  • Key (member_id) — bigint — 외래 키 → 유저.Key — NOT NULL
  • Field (body) — text
  • Field (score) — float
  • Field (created_at) — datatime(6)
  • Field (updated_at) — datatime(6)

리뷰 요청 (review_ request)

  • Key (review_ request_id) — bigint — 기본 키 — NOT NULL
  • Field (is_confirmed) — datetime(6)
  • Field (title) — varchar(40)
  • Field (body) — text
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)
  • Key (user_id) — bigint — 외래 키 → 유저.Key — NOT NULL

미션 (mission)

  • Key (mission_id) — bigint — 기본 키 — NOT NULL
  • Field (reward_point) — int
  • Field (deadline) — datetime(6)
  • Field (mission_content) — text
  • Field (creared_at) — datetime(6)
  • Field (updated_at) — datetime(6)

새로운 미션 알림 (newMission_alarm)

  • Key (newMission_alarm_id) — bigint — 기본 키 — NOT NULL
  • Field (title) — varchar(40)
  • Field (body) — text
  • Field (is_confirmed) — datetime(6)
  • Field (created_at) — datetime(6)
  • Field (update_at) — datetime(6)
  • Key (user_id) — bigint — 외래 키 → 유저.Key — NOT NULL

유저 (User)

  • Key (user_id) — bigint — 기본 키 — NOT NULL
  • Field4 (pasward) — varchar(30)
  • Field (name) — varchar(20)
  • Field2 (gender) — varchar(10)
  • Field3 (age) — int
  • Field (email) — varchar(40)
  • Field (point) — bigint
  • Field6 (status) — varchar(20)
  • Field7 (inactive_data) — datetime(6)
  • Field8 (created_at) — datetime(6)
  • Field9 (updated_at) — datetime(6)

음식 선호도 조사 (User_prefer)

  • Key (user_prefer_id) — bigint — 기본 키 — NOT NULL
  • Key (member_id) — bigint — 외래 키 → 유저.Key — NOT NULL
  • Key (prefer_id2) — bigint — 외래 키 → 음식 카테고리.Key — NOT NULL
  • Field (creates_at) — datetime(6)
  • Field (updated_at) — datetime(6)

음식 카테고리 (category_food)

  • Key (prefer_id) — bigint — 기본 키 — NOT NULL
  • Field (food_name) — text
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)

지역 (region)

  • Key (region_id) — bigint — 기본 키 — NOT NULL
  • Key (store_id) — bigint — 외래 키 → 가게.Key — NOT NULL
  • Field (location) — varchar(40)
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)