HealthTracker

Tables (5)

HEALTH_GOAL (목표)

  • 목표고유번호 (goal_pk_num) — INT — Primary key — NOT NULL
  • 유저고유번호 (user_pk_num) — INT — Foreign key → USER.유저고유번호 — NOT NULL

HEALTH_GOAL_ITEM (목표항목)

  • 목표항목고유번호 (goal_pk_num) — INT — Primary key — NOT NULL
  • 목표고유번호 (goal_pk_num2) — INT — Foreign key → HEALTH_GOAL.목표고유번호 — NOT NULL
  • 목표항목타입 (goal_item) — VARCHAR(50)
  • 목표항목값 (goal_value) — INT

HEALTH_RECORD (기록)

  • 기록고유번호 (rec_pk_num) — INT — Primary key — NOT NULL
  • 유저고유번호 (user_pk_num) — INT — Foreign key → USER.유저고유번호 — NOT NULL
  • 기록등록일 (rec_date) — DATETIME
  • 기록메모 (rec_memo) — VARCHAR(100)

HEALTH_RECORD_ITEM (기록항목)

  • 기록항목고유번호 (rec_item_pk_num) — INT — Primary key — NOT NULL
  • 기록고유번호 (rec_pk_num) — INT — Foreign key → HEALTH_RECORD.기록고유번호 — NOT NULL
  • 기록항목타입 (rec_item_type) — VARCHAR(50)
  • 기록항목값 (rec_item_value) — INT

USER (사용자)

  • 유저고유번호 (user_pk_num) — int — Primary key — NOT NULL
  • 유저아이디 (user_id) — String
  • 유저이름 (user_name) — String
  • 유저비밀번호 (user_pw) — String