튼튼한거북이

테이블 (10)

Center

  • center_id — 기본 키 — NOT NULL
  • id — NOT NULL
  • password — NOT NULL
  • name — NOT NULL
  • location — NOT NULL
  • createdAt
  • updatedAt

Exercise

  • exercise_id — 기본 키 — NOT NULL
  • program_id — 외래 키 → Program.program_id — NOT NULL
  • description
  • name — NOT NULL
  • path
  • level
  • muscleType1
  • createdAt
  • updatedAt

ExercisesToolTypes

  • exercise_id — 외래 키 → Exercise.exercise_id — NOT NULL
  • toolTypes_id — 외래 키 → ToolTypes.toolTypes_id — NOT NULL

Program

  • program_id — 기본 키 — NOT NULL
  • name — NOT NULL
  • description
  • createdAt
  • updatedAt
  • exerciseTimes — enum
  • tools — enum
  • muscleType1 — enum
  • taekwondo — boolean

Record

  • record_id — 기본 키 — NOT NULL
  • program_id — 외래 키 → Program.program_id — NOT NULL
  • center_id — 외래 키 → Center.center_id — NOT NULL
  • createdAt
  • updatedAt
  • startTime
  • endTime
  • participantCount

RecordsUsers

  • id — 기본 키 — NOT NULL
  • user_id — 외래 키 → User.user_id — NOT NULL
  • record_id — 외래 키 → Record.record_id — NOT NULL

Surveys

  • survey_id — 기본 키 — NOT NULL
  • id (id2) — 외래 키 → RecordsUsers.id — NOT NULL
  • attitude
  • ability (abillity)
  • trouble — bool
  • center_id

ToolTypes

  • toolTypes_id — 기본 키 — NOT NULL
  • tools — NOT NULL

TroubleParts

  • trouble_part_id — 기본 키 — NOT NULL
  • survey_id — 외래 키 → Surveys.survey_id — NOT NULL
  • MuscleType1

User

  • user_id — 기본 키 — NOT NULL
  • center_id — 외래 키 → Center.center_id — NOT NULL
  • name — NOT NULL
  • age — NOT NULL
  • gender — NOT NULL
  • rank — NOT NULL
  • createdAt
  • updatedAt