Advertisement
Guest User

Untitled

a guest
May 20th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.03 KB | None | 0 0
  1. | graduates | CREATE TABLE `graduates` (
  2.   `id` int(11) NOT NULL AUTO_INCREMENT,
  3.   `name` text CHARACTER SET latin1 NOT NULL,
  4.   `email` text CHARACTER SET latin1 NOT NULL,
  5.   `pronunciation` text CHARACTER SET latin1,
  6.   `degreeLevel` text CHARACTER SET latin1 NOT NULL,
  7.   `honors` text CHARACTER SET latin1,
  8.   `major` text CHARACTER SET latin1 NOT NULL,
  9.   `seniorQuote` text CHARACTER SET latin1,
  10.   `university` int(11) NOT NULL,
  11.   `ceremony` int(11) NOT NULL,
  12.   `uuid` varchar(38) CHARACTER SET latin1 DEFAULT NULL,
  13.   `isHighSchool` tinyint(1) NOT NULL DEFAULT '0',
  14.   `graduated` tinyint(1) NOT NULL DEFAULT '0',
  15.   `timeslot` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  16.   PRIMARY KEY (`id`),
  17.   KEY `fk_university` (`university`),
  18.   KEY `fk_ceremony` (`ceremony`),
  19.   CONSTRAINT `graduates_ibfk_1` FOREIGN KEY (`university`) REFERENCES `universities` (`id`),
  20.   CONSTRAINT `graduates_ibfk_2` FOREIGN KEY (`ceremony`) REFERENCES `ceremonies` (`id`)
  21. ) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=utf8mb4 |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement