Created
September 16, 2012 11:57
-
-
Save bhdrkn/3732123 to your computer and use it in GitHub Desktop.
Car Sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `car` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`liecencePlate` varchar(50) COLLATE utf8_turkish_ci NOT NULL, | |
`model` varchar(50) COLLATE utf8_turkish_ci DEFAULT NULL, | |
`userId` int(11) NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `fk_userid` (`userId`), | |
CONSTRAINT `fk_userid` FOREIGN KEY (`userId`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment