IITP Trainer

Tables (16)

category_kinds

  • cate_kinds_idx — int(11) — Primary key — NOT NULL
  • cate_part_idx — int(11) — Foreign key → category_part.cate_part_idx
  • cate_machine_idx — int(11) — Foreign key → category_machine.cate_machine_idx
  • cate_kinds_name — varchar(200)

category_machine

  • cate_machine_idx — int(11) — Primary key — NOT NULL
  • cate_part_idx — int(11) — Foreign key → category_part.cate_part_idx
  • cate_machine_name — varchar(50)

category_part

  • cate_part_idx — int(11) — Primary key — NOT NULL
  • cate_part_name — varchar(200)

ct_health_content_set

  • chcs_idx (chds_idx) — int(11) — Primary key — NOT NULL
  • hc_idx — int(11) — Foreign key → health_content.hc_idx — health_content index
  • set — int(11) — NOT NULL — 세트 번호
  • count — int(11) — NOT NULL — 횟수
  • kg — int(11) — NOT NULL — 무게
  • time — int(11) — NOT NULL — 시간
  • ex — longtext
  • ex_time — longtext
  • ex_section — longtext
  • ex_result — longtext
  • created_at — datetime — NOT NULL
  • updated_at — datetime — NOT NULL

ct_user_history

  • cuh_idx — int(11) — Primary key — NOT NULL
  • ui_idx — int(11) — Foreign key → user_info.ui_idx — user_info index
  • hc_cate_part (cate_part_idx) — int(11) — Foreign key → category_part.cate_part_idx — 카테고리 운동부위
  • hc_cate_machine (cate_machine_idx) — int(11) — Foreign key → category_machine.cate_machine_idx — 카테고리 운동 기기
  • hc_cate_kinds (cate_kinds_idx) — int(11) — Foreign key → category_kinds.cate_kinds_idx — 카테고리 운동 종류
  • created_at — datetime — NOT NULL
  • updated_at — datetime — NOT NULL

ct_user_history_relation

  • cuhr_idx — int(11) — Primary key — NOT NULL
  • uc_idx — int(11) — Foreign key → user_contents.uc_idx — user_contents index
  • cuh_idx — int(11) — Foreign key → ct_user_history.cuh_idx — ct_user_history index
  • created_at — datetime — NOT NULL
  • updated_at — datetime — NOT NULL

ct_user_history_set

  • cuhs_idx — int(11) — Primary key — NOT NULL
  • cuh_idx — int(11) — Foreign key → ct_user_history.cuh_idx — ct_user_history index
  • set — int(11) — NOT NULL — 세트 번호
  • count — int(11) — NOT NULL — 횟수
  • kg — int(11) — NOT NULL — 무게
  • time — int(11) — NOT NULL — 시간
  • ex — longtext
  • ex_time — longtext
  • ex_section — longtext
  • ex_result — longtext
  • created_at — datetime — NOT NULL
  • updated_at — datetime — NOT NULL

device_info

  • di_idx — int(11) — Primary key — NOT NULL
  • gi_idx (gi_idx2) — int(11) — Foreign key → gym_info.gi_idx — NOT NULL
  • cate_machine_idx (cate_machine_idx2) — int(11) — Foreign key → category_machine.cate_machine_idx — NOT NULL
  • serialNum — varchar(50) — NOT NULL — 기기 고유넘버

gym_info

  • gi_idx — int(11) — Primary key — NOT NULL — 인덱스
  • gi_name — varchar(50) — NOT NULL — 헬스장 명
  • gi_adress — varchar(200) — NOT NULL — 헬스장 주소
  • gi_latitude — double — NOT NULL — 헬스장 위도 //현재사용X
  • gi_logitude — double — NOT NULL — 헬스장 경도 //현재사용X
  • gi_joinDate — timestamp — NOT NULL — 헬스장 피트가이드 설치일
  • gi_trainer_count — int(11) — NOT NULL — 헬스장 소속 트레이너 수 // 현재사용X

health_content

  • hc_idx — int(11) — Primary key — NOT NULL — 테이블 인덱스
  • ht_idx — int(11) — Foreign key → health_trainer.ht_idx — NOT NULL — 트레이너 인덱스
  • hc_cate_part (cate_part_idx2) — int(11) — Foreign key → category_part.cate_part_idx — NOT NULL — 카테고리 운동부위
  • hc_cate_machine (cate_machine_idx) — int(11) — Foreign key → category_machine.cate_machine_idx — NOT NULL — 카테고리 운동 기기
  • hc_cate_kinds (cate_kinds_idx) — int(11) — Foreign key → category_kinds.cate_kinds_idx — NOT NULL — 카테고리 운동 종류
  • hc_memo — varchar(200) — NOT NULL — 콘텐츠명
  • hc_video — varchar(200) — 콘텐츠 영상
  • hc_registerDate — timestamp — NOT NULL — 콘텐츠 등록일
  • hc_complete_flag — int(11) — NOT NULL — 콘텐츠 완성 여부(웹에서 수정했는지 여부)
  • hc_grade_flag — int(11) — NOT NULL — 콘텐츠 등급(5단계 예정)

health_content_post

  • hcp_idx — int(11) — Primary key — NOT NULL — 테이블 인덱스
  • hcp_code — binary(16) — NOT NULL — uuid (unique key)
  • ht_idx — int(11) — Foreign key → health_trainer.ht_idx — NOT NULL — 판매글 등록한 트레이너
  • cate_machine_idx — int(11) — Foreign key → category_machine.cate_machine_idx — NOT NULL — cate_machine 카테고리
  • hcp_name — text — NOT NULL — 콘텐츠 판매글 제목
  • hcp_explain — text — NOT NULL — 콘텐츠 기본 설명
  • hcp_basicInfo — text — NOT NULL — 콘텐츠 기본 정보
  • hcp_detailInfo — text — NOT NULL — 콘텐츠 상세 정보
  • hcp_package — varchar(50) — NOT NULL — 패키지로 묶은 콘텐츠
  • hcp_price — int(11) — NOT NULL — 콘텐츠 가격
  • hcp_sellCount — int(11) — NOT NULL — 판매 횟수
  • hcp_status — int(11) — NOT NULL — 게시 여부(삭제와 같은 기능)
  • hcp_registerDate — timestamp — NOT NULL — 판매글 등록일
  • hcp_mainPhoto — varchar(200) — NOT NULL — 콘텐츠 판매글 메인 이미지
  • hcp_slidePhoto1 — varchar(200) — 콘텐츠 판매글 슬라이드 이미지1
  • hcp_slidePhoto2 — varchar(200) — 콘텐츠 판매글 슬라이드 이미지2
  • hcp_slidePhoto3 — varchar(200) — 콘텐츠 판매글 슬라이드 이미지3
  • hcp_slidePhoto4 — varchar(200) — 콘텐츠 판매글 슬라이드 이미지4
  • hcp_goal_count — int(11) — NOT NULL — 기간내 목표 수행 횟수
  • hcp_goal_period — int(11) — NOT NULL — 목표 수행 기간

health_trainer

  • ht_idx — int(11) — Primary key — NOT NULL — 테이블 인덱스
  • ht_id — varchar(200) — NOT NULL — 트레이너 아이디
  • ht_password — varchar(200) — NOT NULL — 트레이너 비밀번호
  • ht_name — varchar(50) — 트레이너 이름
  • ht_grade — int(11) — NOT NULL
  • ht_gym (gi_idx) — int(11) — Foreign key → gym_info.gi_idx — NOT NULL — 트레이너의 피트니스센터(외래키 참조)
  • ht_point — int(11) — NOT NULL — 트레이너의 수입포인트(현금화가능)
  • ht_total_sale_count — int(11) — NOT NULL
  • ht_total_sale_price — int(11) — NOT NULL
  • ht_join_date — timestamp — NOT NULL

product_review

  • pr_idx — int(11) — Primary key — NOT NULL — 인덱스
  • pr_score — int(11) — 구매후기 점수(별점)
  • pr_content — text — 구매후기 내용
  • pr_date — timestamp — NOT NULL — 구매후기 등록일시
  • pr_useridx — int(11) — 사용자인덱스
  • pr_photo — text — 구매후기 사진
  • hcp_idx (hcp_idx2) — int(11) — Foreign key → health_content_post.hcp_idx — NOT NULL — 테이블 인덱스

user_contents

  • uc_idx — int(11) — Primary key — NOT NULL
  • ui_idx — int(11) — Foreign key → user_info.ui_idx — NOT NULL — user_info index
  • hcp_idx — int(11) — Foreign key → health_content_post.hcp_idx — 헬스콘텐츠상품 인덱스FK
  • hc_idx — int(11) — Foreign key → health_content.hc_idx — 헬스 콘텐츠 idx, FK
  • uc_buy_date (uc_buyDate) — date — NOT NULL — 입금일자
  • uc_end_date (uc_endDate) — date — 콘텐츠 기한
  • uc_goal_count — int(11) — NOT NULL — 콘텐츠 목표 수행 횟수
  • uc_real_count — int(11) — NOT NULL — 콘텐츠 실제 수행 횟수
  • created_at — datetime — NOT NULL — 최초 생성 날짜
  • updated_at — datetime — NOT NULL — 수정된 날짜

user_info

  • ui_idx — int(11) — Primary key — NOT NULL
  • ui_grade — int(11) — NOT NULL
  • nb_card — int(11) — NOT NULL — 나이스페이 간편결제
  • ui_name — varchar(50) — 회원 이름
  • ui_phone — varchar(50) — NOT NULL
  • ui_password — varchar(200) — NOT NULL
  • ui_email — varchar(50) — NOT NULL
  • ui_address — varchar(200) — NOT NULL
  • ui_email_use — int(11) — NOT NULL
  • ui_email_date — timestamp — NOT NULL
  • ui_point — int(11)
  • ui_total_buy_count — int(11) — NOT NULL
  • ui_total_buy_price — int(11) — NOT NULL
  • ui_total_sale_count — int(11) — NOT NULL
  • ui_total_sale_price — int(11) — NOT NULL
  • ui_last_login — timestamp — NOT NULL
  • ui_join_date — timestamp — NOT NULL
  • ui_pointExt_state — int(11) — NOT NULL — 포인트 소멸 상태 (기본값:0 소멸:1 소멸보류:2)
  • ui_pointExt_date — timestamp — NOT NULL
  • ui_del_state — int(11) — NOT NULL — 회원 탈퇴 상태 (기본값:0, 탈퇴진행중:1)
  • ui_del_date — timestamp — NOT NULL
  • ui_other_agree — int(11) — NOT NULL
  • ui_dupli_state — int(11) — NOT NULL
  • ui_clickChannel — int(11) — NOT NULL — 카카오 채널 버튼 클릭 0 = 클릭 안함, 1 = 클릭함
  • ui_recentAddress — varchar(200)

user_question

  • uq_idx — int(11) — Primary key — NOT NULL
  • uq_subject — text — NOT NULL
  • uq_contents — text — NOT NULL
  • uq_answer_bool (Field) — int(11) — NOT NULL — 답변여부
  • uq_answer — text — NOT NULL
  • uq_date — timestamp — NOT NULL
  • hcp_idx — int(11) — Foreign key → health_content_post.hcp_idx — NOT NULL — 테이블 인덱스