ERD-tutorial

테이블 (5)

교육과정 (Course)

  • PK (course_id) — 기본 키 — NOT NULL
  • 과정 (course) — string

교육생 (Student)

  • PK (student_id) — 기본 키 — NOT NULL
  • PK (class_id) — 외래 키 → 반.PK — NOT NULL
  • PK (consultant_id) — 외래 키 → 반.PK — NOT NULL
  • PK (course_id) — 외래 키 → 반.PK — NOT NULL
  • 기수 (semester) — integer
  • 전공여부 (major) — boolean
  • 퇴소여부 (exit) — boolean

반 (Class)

  • PK (class_id) — 기본 키 — NOT NULL
  • PK (consultant_id) — 외래 키 → 컨설턴트.PK — NOT NULL
  • PK (course_id) — 외래 키 → 교육과정.PK — NOT NULL
  • 지역 (region) — string
  • 반 번호 (class_number) — integer
  • PK (coach_id) — 외래 키 → 코치.PK — NOT NULL

컨설턴트 (Consultant)

  • PK (consultant_id) — 기본 키 — NOT NULL
  • 담당업무 (position) — string

코치 (Coach)

  • PK (coach_id) — 기본 키 — NOT NULL
  • 담당업무 (position) — string