POCS_mission_4

Tables (9)

Store_Picture (Untitled5)

  • 사진ID (Store_Pic_id) — bigint(20) — Primary key — NOT NULL
  • 가게 아이디 (store_id) — bigint — Foreign key → store.가게 아이디 — NOT NULL
  • 생성일 (creaded_at) — datetime — NOT NULL
  • 수정일 (updated_at) — datetime
  • 상태 (status) — varchar(15) — NOT NULL — 존재/삭제

favorite food (Untitled2)

  • 음식분야ID (food_id) — bigint — Primary key — NOT NULL
  • 회원 아이디 (user_id) — int unsigned auto_increment — Foreign key → member.회원 아이디 — NOT NULL — unsigned : 음수를 제거한 만큼 양수 범위를 늘림 / auto_increment : 자동으로 숫자 증가
  • 음식 분야 (food_filed) — varchar(20) — NOT NULL

member (Untitled)

  • 회원 아이디 (user_id) — int unsigned auto_increment — Primary key — NOT NULL — unsigned : 음수를 제거한 만큼 양수 범위를 늘림 / auto_increment : 자동으로 숫자 증가
  • (이름)닉네임 (name) — varchar(20) — NOT NULL
  • 성별 (gender) — varchar(10) — NOT NULL
  • 생년월일 (birth) — date — NOT NULL
  • 현재회원주소 (member_address) — varchar(50) — NOT NULL
  • 역할(가게주인, 회원) (role) — char — NOT NULL
  • 이용약관 동의 (agree_TOS) — char — NOT NULL
  • 개인정보 수집 (agree_PICU) — char — NOT NULL
  • 위치정보 제공 (agree_GPS) — char
  • 마케팅 수신 동의 (agree_promotion) — char
  • 포인트 (m_point) — int — NOT NULL
  • 미션수 (mission) — bigint unsigned — NOT NULL
  • 가입 날짜 (created_at) — datetime(6) — NOT NULL — 6밀리세컨드까지
  • 수정 날짜 (updated_at) — datetime(6)
  • 계정 활성화 상태 (status) — varchar(15) — NOT NULL
  • 활성화 변경 날짜 (inactiva_date) — datetime

member_address (Untitled4)

  • 주소ID (address_id) — bigint — Primary key — NOT NULL
  • 회원 아이디 (user_id) — int unsigned auto_increment — Foreign key → member.회원 아이디 — NOT NULL — unsigned : 음수를 제거한 만큼 양수 범위를 늘림 / auto_increment : 자동으로 숫자 증가
  • 회원주소 (user_address) — varchar(max) — NOT NULL
  • 생성일 (created_at) — datetime(6) — NOT NULL
  • 수정일 (updated_at) — datetime(6)
  • 상태 (status) — varchat(max) — NOT NULL — 활성화/비활성화

mission (Untitled7)

  • 미션ID (mission_id) — bigint — Primary key — NOT NULL
  • 가게 아이디 (store_id) — bigint — Foreign key → store.가게 아이디 — NOT NULL
  • 제목 (title) — varchar(30) — NOT NULL
  • 내용 (mission_content) — varchar(max) — NOT NULL
  • 생성날짜 (created_at) — datetime(6) — NOT NULL
  • 수정날짜 (updated-at) — datetime(6)
  • 상태 (statue) — varchar(15) — NOT NULL — 활성화/비활성화

mission _complete (Untitled8)

  • 완성ID (m_compl_id) — bigint — Primary key — NOT NULL
  • 미션ID (mission_id) — bigint — Foreign key → mission.미션ID — NOT NULL
  • 회원 아이디 (user_id) — int unsigned auto_increment — Foreign key → member.회원 아이디 — NOT NULL — unsigned : 음수를 제거한 만큼 양수 범위를 늘림 / auto_increment : 자동으로 숫자 증가
  • 성공날짜 (complete_at) — datetime — NOT NULL

mission_ing (Untitled9)

  • 진행중ID (m_ing_id) — bigint — Primary key — NOT NULL
  • 미션ID (mission_id) — bigint — Foreign key → mission.미션ID — NOT NULL
  • 회원 아이디 (user_id) — int unsigned auto_increment — Foreign key → member.회원 아이디 — NOT NULL — unsigned : 음수를 제거한 만큼 양수 범위를 늘림 / auto_increment : 자동으로 숫자 증가
  • 진행시작날짜 (ing_at) — datetime — NOT NULL

reivew (Untitled6)

  • 리뷰아이디 (review_id) — bigint — Primary key — NOT NULL
  • 회원 아이디 (user_id) — int unsigned auto_increment — Foreign key → member.회원 아이디 — NOT NULL — unsigned : 음수를 제거한 만큼 양수 범위를 늘림 / auto_increment : 자동으로 숫자 증가
  • 가게 아이디 (store_id) — bigint — Foreign key → store.가게 아이디 — NOT NULL
  • 별점 (star) — int(1) — NOT NULL — 별점 범위는 1~5 중에서 하나
  • 내용 (content) — varchar(max)
  • 리뷰사진 (review_Pic_URL) — text
  • 생성일 (created_at) — datetime(6) — NOT NULL
  • 수정일 (updated_at) — datetime(6)
  • 상태 (status) — varchar(15) — NOT NULL — 일반/삭제

store (Untitled3)

  • 가게 아이디 (store_id) — bigint — Primary key — NOT NULL
  • 회원 아이디 (user_id) — int unsigned auto_increment — Foreign key → member.회원 아이디 — NOT NULL — unsigned : 음수를 제거한 만큼 양수 범위를 늘림 / auto_increment : 자동으로 숫자 증가
  • 가게명 (store_name) — varchar(15) — NOT NULL
  • 평균별점 (star_score) — decimal(2,1) — NOT NULL — decimal(2,1) : 2는 전체 자릿수 (소수점 포함), 1은 소수점 이하 자릿수
  • 가게음식분야 (store_food) — varchar(200 — NOT NULL
  • 생성일 (created_at) — datetime(6) — NOT NULL
  • 수정일 (updated_at) — datetime(6)
  • 상태 (status) — varchar(15) — NOT NULL — 운영/운영종료/폐업
  • 사진 (store_Picture_URL) — text