Guest User

Untitled

a guest
Nov 14th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.35 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.   `author` int(11) unsigned NOT NULL,
  7.   PRIMARY KEY (`id`),
  8.   KEY `author` (`author`),
  9.   CONSTRAINT `author` FOREIGN KEY (`author`) REFERENCES `users` (`id`)
  10. ) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
Advertisement
Add Comment
Please, Sign In to add comment