데이터베이스시스템 출석수업과제

테이블 (4)

RESERVATION (예약)

  • 회원번호 (member_id) — int — 외래 키 → 회원.회원번호 — NOT NULL
  • 수업코드 (class_code) — int — 외래 키 → 운동수업.수업코드 — NOT NULL
  • 예약일자 (reservation_date) — datetime
  • 참여자 (attendance) — boolean

운동수업 (EXERCISE_CLASS)

  • 수업코드 (class_code) — string — 기본 키 — NOT NULL
  • 수업명 (class_name) — string
  • 수업시간 (class_time) — datetime
  • 최대참여인원 (max_participants) — int
  • 수업장소 (location) — string
  • 트레이너번호 (trainer_id) — int — 외래 키 → 트레이너.트레이너번호

트레이너 (TRAINER)

  • 트레이너번호 (trainer_id) — string — 기본 키
  • 이름 (name) — string
  • 전문분야 (speciality) — string
  • 연락처 (contact) — string

회원 (MEMBER)

  • 회원번호 (member_id) — int — 기본 키 — NOT NULL
  • 이름 (name) — string
  • 전화번호 (phone_number) — string
  • 이메일 (email) — string
  • 가입일 (join_date) — datetime