스프링 CRUD

테이블 (3)

class_table (Untitled)

  • 강의ID (class_id) — NotNull — 기본 키 — NOT NULL
  • 강의실 (class_room) — NotNull
  • 강의명 (class_title) — NotNull
  • 신청가능학생수 (max_studnet) — NotNull
  • 현재신청한학생수 (now_studnet) — NotNull
  • 시작날짜 (start_date) — NotNull
  • 강사ID (teacher_id) — NotNull — 외래 키 → teacher.강사ID — NOT NULL

student_table (Untitled3)

  • 학생전화번호 (student_number) — NotNull — 기본 키 — NOT NULL
  • 학생이름 (student_name) — NotNull
  • 학생ID (studnet_id) — NotNull
  • 강의ID (class_id) — NotNull — 외래 키 → class_table.강의ID — NOT NULL

teacher (Untitled2)

  • 강사ID (teacher_id) — NotNull — 기본 키 — NOT NULL
  • 강사이름 (teacher_name) — NotNull