Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE `news` (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(128) NOT NULL,
- `body` text NOT NULL,
- `date` datetime NOT NULL,
- `author` int(11) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- KEY `author` (`author`),
- CONSTRAINT `author` FOREIGN KEY (`author`) REFERENCES `users` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Advertisement
Add Comment
Please, Sign In to add comment