test

Tables (6)

Course

  • id — int — Primary key — NOT NULL
  • _name — nchar(30)
  • credit — int
  • dept_id — int — NOT NULL
  • prof_id — int — NOT NULL
  • id (d_id) — int — Foreign key → Department.id — NOT NULL

Department

  • id — int — Primary key — NOT NULL
  • _name — nchar(30)
  • phone — char(13)
  • addr — nchar(50)

Lab

  • id — int — Foreign key → Professor.id — NOT NULL
  • _name — nchar(30)

Professor

  • id — int — Primary key — NOT NULL
  • _name — nchar(4)
  • dept_id — int — NOT NULL
  • phone — char(13)
  • id (d_id) — int — Foreign key → Department.id — NOT NULL

Student

  • id — int — Primary key — NOT NULL
  • _name — nchar(30)
  • birth — datetime2
  • dept_id — int — NOT NULL
  • lab_id — int — NOT NULL
  • phone — char(13)

Sugang

  • c_id — int — Foreign key → Course.id — NOT NULL
  • s_id — int — Foreign key → Student.id — NOT NULL
  • gpa — char(2)
  • open_year — datetime2
  • open_semester — tinyint