-
Notifications
You must be signed in to change notification settings - Fork 1
UsersCampus
Yoann Fuks edited this page Oct 31, 2018
·
1 revision
A user may be in multiples campus
USERSCAMPUS
(
ID INT NOT NULL PRIMARY KEY UNIQUE,
userID INT,
campusID INT,
isPrimary TINYINT,
updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (userID) REFERENCES USERS(ID),
FOREIGN KEY (campusID) REFERENCES CAMPUS(ID)
) ENGINE = InnoDB;