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,
- `users_id` int(11) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- KEY `users_id` (`users_id`),
- CONSTRAINT `users_id` FOREIGN KEY (`users_id`) REFERENCES `users` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Advertisement
Add Comment
Please, Sign In to add comment