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

Department

  • id — int — Primary key — NOT NULL
  • _name — nchar(30)
  • phone — char(14)
  • 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)
  • phone — char(14)
  • id (dept_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(14)

Sugang

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