TRME

테이블 (11)

계정 (tb_account)

  • 시퀀스 아이디 (account_sid) — Integer — 기본 키 — NOT NULL — Auto Increment
  • 계정 유형 (account_type) — String — (00: 관리자, 01: 유저)
  • 아이디 (account_kr) — String
  • 이메일 (account_email) — String
  • 패스워드 (account_pwd) — String
  • 이미지 시퀀스 아이디 (file_sid) — Integer

다이어리 (tb_diary)

  • 시퀀스 아이디 (diary_sid) — Integer — 기본 키 — NOT NULL — Auto Increment
  • 다이어리 유형 (category_cd) — String — (00: 운동, 01: 체중, 02: 수면, 03: 수분, 04: 식사, 05: 걸음)
  • 이미지 시퀀스 아이디 (file_sid) — Integer
  • 공통 필드 1 (Field)
  • 공통 필드 2 (Field2)
  • 공통 필드 3 (Field3)
  • 생성일 (create_date) — Date
  • 수정일 (update_date) — Date

다이어리_옵션 (tb_diary_option)

  • 시퀀스 (option_seq) — Integer — 기본 키 — NOT NULL — Auto Increment
  • 옵션 유형 (option_type) — String — (RADIO, CHECK, TEXT, PHOTO)
  • 옵션 단위 (option_unit) — String
  • 옵션 이름 (option_name) — String
  • 사용 유무 (used) — String — Y, N

배너 (tb_banner)

  • 시퀀스 아이디 (banner_sid) — Integer — 기본 키 — NOT NULL — Auto Increment
  • 타이틀 (banner_title) — String
  • 텍스트 (banner_text) — TEXT
  • 이미지 시퀀스 아이디 (file_sid) — Integer
  • 배너 사용 유무 (is_active) — String — Y/N
  • 순서 (order) — Integer
  • 생성일 (create_date) — Date
  • 수정일 (update_date) — Date

뱃지 (tb_badge)

  • 시퀀스 아이디 (badge_sid) — Integer — 기본 키 — NOT NULL — Auto Increment
  • 뱃지 유형 (badge_type) — String — (00: 다이어리, 01: 챌린지)
  • 뱃지 이름 (badge_name) — String
  • 설명 문구 (badge_description) — Text
  • 획득 유형 (condition_type) — String — (00: 걷기, 01: 운동, 02: 수면, 03: 다이어리, 04: 챌린지, 05:한달 달성)
  • 조건 횟수 (condition_count) — Integer

보상 (tb_reward)

  • 시퀀스 아이디 (reward_sid) — Integer — 기본 키 — NOT NULL — Auto Increment
  • 시퀀스 아이디 (account_sid) — Integer — 외래 키 → 계정.시퀀스 아이디 — NOT NULL — Auto Increment
  • 보상 유형 (reward_type) — String — (00: 뱃지, 01: 포인트?)
  • 시퀀스 아이디 (badge_sid) — Integer — 외래 키 → 뱃지.시퀀스 아이디 — NOT NULL — Auto Increment
  • 수령일 (reward_date) — Date

챌린지 (tb_challenge)

  • 시퀀스 아이디 (challenge_sid) — Integer — 기본 키 — NOT NULL — Auto Increment
  • 챌린지 등급 (challenge_grade) — String — (00: 일반, 01: 프리미엄)
  • 타이틀 (challenge_title) — String
  • 텍스트 (challenge_text) — Text
  • 챌린지 기간 (challenge_date) — Integer
  • 인증 주기 (challenge_auth) — Integer
  • 이미지 시퀀스 아이디 (file_sid) — Integer
  • 챌린지 사용 유무 (is_active) — String — Y/N
  • 시작일 (start_date) — Date
  • 종료일 (end_date) — Date

챌린지 보상 (Untitled)

  • 시퀀스 아이디 (challenge_sid) — Integer — 외래 키 → 챌린지.시퀀스 아이디 — NOT NULL — Auto Increment

챌린지 인증 (tb_challenge_auth)

  • 시퀀스 아이디 (auth_sid) — Integer — 기본 키 — NOT NULL — Auto Increment
  • 시퀀스 아이디 (work_sid) — Integer — 외래 키 → 챌린지 작업.시퀀스 아이디 — NOT NULL — Auto Increment
  • 인증 회차 (auth_turn) — Integer
  • 이미지 시퀀스 아이디 (file_sid) — Integer

챌린지 작업 (tb_work_challenge)

  • 시퀀스 아이디 (work_sid) — Integer — 기본 키 — NOT NULL — Auto Increment
  • 시퀀스 아이디 (challenge_sid) — Integer — 외래 키 → 챌린지.시퀀스 아이디 — NOT NULL — Auto Increment
  • 시퀀스 아이디 (account_sid) — Integer — 외래 키 → 계정.시퀀스 아이디 — NOT NULL — Auto Increment
  • 생성일 (create_date) — Date
  • 수정일 (update_date) — Date
  • 완료일 (complete_date) — Date

파일 (tb_file)

  • 시퀀스 아이디 (file_sid) — Integer — 기본 키 — NOT NULL — Auto Increment
  • 파일 유형 (file_type) — String — (00: 이미지, 01: 비디오)
  • 파일 경로 (file_path) — String
  • 파일 링크 (file_url) — String