Guest User

Untitled

a guest
Nov 14th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.36 KB | None | 0 0
  1. CREATE TABLE `news` (
  2.   `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  3.   `title` varchar(128) NOT NULL,
  4.   `body` text NOT NULL,
  5.   `date` datetime NOT NULL,
  6.   `users_id` int(11) unsigned NOT NULL,
  7.   PRIMARY KEY (`id`),
  8.   KEY `users_id` (`users_id`),
  9.   CONSTRAINT `users_id` FOREIGN KEY (`users_id`) REFERENCES `users` (`id`)
  10. ) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
Advertisement
Add Comment
Please, Sign In to add comment