8기_구미 1반_이효진_ERD

테이블 (4)

class (Untitled4)

  • id (0) — int — 기본 키 — NOT NULL
  • consultantId (1) — int — 외래 키 → consultant.id — NOT NULL
  • coachId (2) — int — 외래 키 → coach.id — NOT NULL
  • num (3) — int
  • campus (4) — int
  • track (5) — string

coach (Untitled3)

  • id (0) — int — 기본 키 — NOT NULL
  • name (1) — boolean
  • class (2) — int
  • campus (3) — int
  • role (4) — string

consultant (Untitled2)

  • id (0) — int — 기본 키 — NOT NULL
  • name (1) — string
  • class (2) — int
  • campus (3) — int
  • role (4) — string

student (Untitled)

  • id (0) — int — 기본 키 — NOT NULL
  • classId (1) — int — 외래 키 → class.id — NOT NULL
  • consultantId (2) — int — 외래 키 → class.consultantId — NOT NULL
  • coachId (3) — int — 외래 키 → class.coachId — NOT NULL
  • name (4) — string
  • isMajor (5) — boolean
  • isGone (6) — boolean
  • colors (7) — int