CG-mvp3

Tables (42)

app_version (Untitled22)

  • id (식별값) — Primary key — NOT NULL
  • app_id (앱 id)
  • version_code (버전 코드)
  • version_name (버전 이름)
  • is_essential (업데이트)
  • update_at (업데이트 일시)

brach (운동공간)

  • id (식별값) — Primary key — NOT NULL
  • name (이름)
  • address (주소)
  • number (전화번호)
  • type (헬스장 유형)
  • img_url (이미지 경로)
  • url (홈페이지 경로)
  • business_hours (영업시간)
  • member_id (운동공간을 만든 사람) — int — Foreign key → member.id — NOT NULL

brach_equipment_cleaning (Untitled8)

  • id (식별값) — Primary key — NOT NULL
  • staff_id (지점 직원) — Foreign key → branch_staff.id — NOT NULL
  • branch_equipment_id (지점에 위치한 운동기구) — Foreign key → branch_equipment.id — NOT NULL
  • user_count (청소 전까지 이용한 사람의 수)
  • created_at (청소 일시)

brach_management_step (Untitled2)

  • id (식별값) — Primary key — NOT NULL
  • step (관리 단계)
  • created_at (변경일시)
  • branch_id (운동공간) — Foreign key → brach.id — NOT NULL

branch_equipment (Untitled6)

  • id (식별값) — Primary key — NOT NULL
  • quipment_id (운동기구) — Foreign key → equipment.id — NOT NULL
  • branch_id (운동공간) — Foreign key → brach.id — NOT NULL
  • tracker_id (트래커) — Foreign key → tracker.id — NOT NULL
  • type (운동기구 유형)

branch_equipment_info (Untitled26)

  • id (식별값) — Primary key — NOT NULL
  • mamber_id (사용자 정보) — int — Foreign key → member.id — NOT NULL
  • staff_id (직원 정보) — Foreign key → branch_staff.id — NOT NULL
  • branch_equipment_id (이용 중인 운동 기구 정보) — Foreign key → branch_equipment.id — NOT NULL
  • start_time (시작시간)
  • end_time (종료 시간)
  • status (이용 유형)

branch_excess_recode (Untitled3)

  • id (식별값) — Primary key — NOT NULL
  • enter_time (입장시각)
  • exit_time (퇴장시간)
  • member_id (사용자 정보) — int — Foreign key → member.id — NOT NULL
  • branch_id (운동공간 정보) — Foreign key → brach.id — NOT NULL

branch_info (Untitled24)

  • id (식별값) — Primary key — NOT NULL
  • branch_id (운동공간) — Foreign key → brach.id — NOT NULL
  • manager_name (담당자 이름)
  • manager_number (담당자 전화번호)
  • area (면적)
  • register_number (사업자 등록번호)
  • created_at (전환 일시)
  • type (전환 유형)

branch_staff (Untitled4)

  • id (식별값) — Primary key — NOT NULL
  • branch_id (운동공간 정보 근무지점) — Foreign key → brach.id — NOT NULL
  • user_id (id)
  • password (비밀번호)
  • name (이름)
  • number (전화번호)
  • birth (생년월일)
  • gender (성별)
  • created_id (계정 생성 일시)
  • working_at (근무 시작일)
  • status (근무 상태)
  • role (역할)

equipment (Untitled7)

  • id (식별값) — Primary key — NOT NULL
  • name (이름)
  • tracker_type (트래커 유형)
  • img_url (이미지 경로)

exercise (Untitled9)

  • id (식별값) — Primary key — NOT NULL
  • name_kr (한글 이름)
  • name_en (영어이름)
  • part (운동부위)
  • type (운동유형)
  • website_url (운동 설명 페이지 url)
  • gif_url (이미지 경로 GIf)
  • img_url (이미지 경로 img)
  • youtube_url (유튜브 url)
  • level (운동 난이도)

exercise_equipment (Untitled10)

  • id (식별값) — Primary key — NOT NULL
  • exercise_id (운동) — Foreign key → exercise.id — NOT NULL
  • equipment_id (운동 기구) — Foreign key → equipment.id — NOT NULL

member (회원)

  • id (사용자 식별값) — int — Primary key — NOT NULL
  • branch_id (주운동공간) — Foreign key → brach.id — NOT NULL
  • nickname (닉네임) — varchar
  • user_id (사용자 아이디) — varchar
  • password (비밀번호)
  • birth (생일)
  • gender (성별)
  • created_at (가입일시)

member_phsycal_info (CopyOfUntitled)

  • id (식별값) — Primary key — NOT NULL
  • member_id (회원 정보) — int — Foreign key → member.id — NOT NULL
  • height (키)
  • weight (몸무게)
  • muscle (근골격량)
  • fat (체지방률)
  • created_at (생성일시)

member_pro (Untitled)

  • id (식별값) — Primary key — NOT NULL
  • member_id (회원 정보) — int — Foreign key → member.id — NOT NULL
  • pro_code_id (code 정보) — Foreign key → member_pro_code.id — NOT NULL
  • created_at (가입 일시)
  • deleted_at (탈퇴 일시)

member_pro_code (CopyOfUntitled2)

  • id (식별값) — Primary key — NOT NULL
  • created_at (가입 일시)
  • deleted_at (탈퇴 일시)

member_withdrawal (CopyOfCopyOfUntitled)

  • id (식별값) — Primary key — NOT NULL
  • branch_id (주 운동공간) — Foreign key → brach.id — NOT NULL
  • nickname (닉네임)
  • user_id (ID)
  • password (비밀번호)
  • brith (생년월일)
  • gender (성별)
  • creadted_at (가입일시)
  • deleted_at (탈퇴 일시)
  • reason (탈퇴 사유)

notice (Untitled18)

  • id (식별값) — Primary key — NOT NULL
  • staff_id (작성자) — Foreign key → branch_staff.id — NOT NULL
  • title (제목)
  • contents (내용)
  • created_at (생성일시)
  • update_at (수정일시)

recode_set_perform_edit (CopyOfUntitled25)

  • id (식별값) — Primary key — NOT NULL
  • record_id (세트 정보) — Foreign key → record_set_perform.id — NOT NULL
  • weigth (무게)
  • count (횟수)
  • distance (거리)
  • type (타입)
  • edited_at (수정한 날짜)

recommend_exercise (Untitled21)

  • id (식별값) — Primary key — NOT NULL
  • exercise_id (운동 아이디) — Foreign key → exercise.id — NOT NULL
  • type (추천 대상 유형)
  • created_at (생성일시)

recommend_routine (Untitled20)

  • id (식별값) — Primary key — NOT NULL
  • routine_id (루틴 아이디) — Foreign key → routine.id — NOT NULL
  • type (추천 대상 유형)
  • created_at (생성일)

record_sequence (Untitled11)

  • id (식별값) — Primary key — NOT NULL
  • user_id (사용자 아이디) — int — Foreign key → member.id — NOT NULL
  • exercise_id (운동 아이디) — Foreign key → exercise.id — NOT NULL
  • brach_equipment_id (운동 기구 아이디) — Foreign key → branch_equipment.id — NOT NULL
  • plan_date (계획한 일자)
  • rest_time (쉬는 시간)
  • status (상태)
  • created_at (생성일시)

record_set_perform (Untitled25)

  • id (식별값) — Primary key — NOT NULL
  • created_at (추가한 사람) — int — Foreign key → member.id — NOT NULL
  • sequence_id (시퀀스 정보) — Foreign key → record_sequence.id — NOT NULL
  • set_number (세트번호)
  • time (시간)
  • weigth (무게)
  • count (횟수)
  • distance (거리)
  • performed_at (수행 일시)

record_set_plan (Untitled12)

  • id (식별값) — Primary key — NOT NULL
  • sequence_id (시퀀스 정보) — Foreign key → record_sequence.id — NOT NULL
  • created_by (추가한 사람) — int — Foreign key → member.id — NOT NULL
  • set_number (세트 번호)
  • time_plan (시간)
  • weight_plan (무게)
  • count_plan (횟수)
  • created_at (생성일시)

record_set_plan_edit (Untitled13)

  • id (식별값) — Primary key — NOT NULL
  • plan_id (세트 정보) — Foreign key → record_set_plan.id — NOT NULL
  • time (시간)
  • weight (무게)
  • count (횟수)
  • type (수정 위치)
  • edited_at (수정 일시)

record_start_time (Untitled23)

  • id (식별값) — Primary key — NOT NULL
  • member_id (사용자 회원 정보) — int — Foreign key → member.id — NOT NULL
  • start_at (운동 시작 예정 시각)
  • created_at (생성일시)

routime_connection (Untitled15)

  • id (식별값) — Primary key — NOT NULL
  • routine_id (루틴 정보) — Foreign key → routine.id — NOT NULL
  • user_id (사용자 정보) — int — Foreign key → member.id — NOT NULL

routine (Untitled14)

  • id (식별값) — Primary key — NOT NULL
  • user_id (사용자 아이디) — int — Foreign key → member.id — NOT NULL
  • name (이름)
  • description (설명)
  • type (유형(초급,중금,고급))
  • status (공개여부)
  • created_at (생성일시)
  • img_url (이미지 경로)

routine_sequence (Untitled16)

  • id (식별값) — Primary key — NOT NULL
  • exercise_id (운동 아이디) — Foreign key → exercise.id — NOT NULL
  • routine_id (루틴 아이디) — Foreign key → routine.id — NOT NULL
  • rest_time (휴식시간)

routine_set (Untitled17)

  • id (식별값) — Primary key — NOT NULL
  • set_number (세트 번호)
  • time (시간)
  • weight (무게)
  • count (횟수)
  • routine_sequence_id (루틴 시퀀스 id) — Foreign key → routine_sequence.id — NOT NULL

suggestions (Untitled19)

  • id (식별값) — Primary key — NOT NULL
  • member_id (작성자 회원) — int — Foreign key → member.id — NOT NULL
  • contents (내용)
  • created_at (생성일시)

tracker (Untitled5)

  • id (식별값) — Primary key — NOT NULL
  • type (트래커 유형)
  • name (트래커 이름)
  • uuid (UUID)
  • rxchar
  • txchar
  • sku (SKU)
  • manufacturer (제조사)
  • created_at (생성일)
  • manager (트래커를 추가한 사람)

경쟁 달성 내용 (Untitled29)

  • id (Key2) — Primary key — NOT NULL
  • challenge_id (Key) — Foreign key → 챌린지.id — NOT NULL
  • member_link_id (Key3) — Foreign key → 챌린지 멤버 연결 테이블.id — NOT NULL
  • feedback (피드백)
  • created_date (달성 날짜)
  • feedback_date (피드백 입력 날짜)
  • img_link_id (Key4) — Foreign key → 이미지 달성 내용 연결 테이블.id — NOT NULL

라이트 달성 내용 (Untitled28)

  • id (Key2) — Primary key — NOT NULL
  • challenge_id (Key3) — Foreign key → 챌린지 멤버 연결 테이블.id — NOT NULL
  • member_link_id (Key) — Foreign key → 챌린지.id — NOT NULL
  • feedback (피드백)
  • created_date (달성날짜)
  • feedback_date (피드백 입력 날짜)
  • img_link_id (Key4) — Foreign key → 이미지 달성 내용 연결 테이블.id — NOT NULL

몰입 달성 내용 (Untitled30)

  • id (Key2) — Primary key — NOT NULL
  • challenge_id (Key) — Foreign key → 챌린지.id — NOT NULL
  • member_link_id (Key3) — Foreign key → 챌린지 멤버 연결 테이블.id — NOT NULL
  • feedback (피드백)
  • created_date (달성 날짜)
  • feedback_date (피드백 입력 날짜)
  • img_link_id (Key4) — Foreign key → 이미지 달성 내용 연결 테이블.id — NOT NULL

이미지 (Untitled35)

  • Key — Primary key — NOT NULL
  • Key (Key2) — Foreign key → 이미지 달성 내용 연결 테이블.id — NOT NULL

이미지 달성 내용 연결 테이블 (Untitled36)

  • id (Key) — Primary key — NOT NULL

챌린지 (Untitled27)

  • id (Key) — Primary key — NOT NULL
  • trainer_id (트레이너 고유값) — Foreign key → 트레이너.id — NOT NULL
  • start_date (시작일)
  • end_date (종료일)
  • name (이름)
  • type (종류)
  • content (내용)
  • goal (달성방법)
  • goal_count (달성 목표 횟수)
  • capacity (모집인원)
  • currnet_capacity (현재 인원)

챌린지 공지사항 (Untitled33)

  • challenge_id (Key) — Foreign key → 챌린지.id — NOT NULL
  • content (내용)

챌린지 멤버 연결 테이블 (Untitled34)

  • id (Key) — Primary key — NOT NULL
  • challenge_id (챌린지 아이디) — Foreign key → 챌린지.id — NOT NULL
  • member_id (사용자 식별값) — int — Foreign key → member.id — NOT NULL

트레이너 (Untitled32)

  • id (Key) — Primary key — NOT NULL
  • Field (이름)
  • Field2 (전문분야)
  • Field3 (운영중인 챌린지 개수)
  • Field4 (누적 챌린지 개수)
  • Field (누적 참여자 수)

트레이너에 대한 챌린지 리뷰 (Untitled31)

  • id (Key) — Primary key — NOT NULL
  • trainer_id (Key2) — Foreign key → 트레이너.id — NOT NULL