Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE IF NOT EXISTS `comments` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `comment` text NOT NULL,
- `club_id` int(9) NOT NULL,
- `comment_date` date NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `club_id` (`club_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
- --
- -- Constraints for dumped tables
- --
- --
- -- Constraints for table `comments`
- --
- ALTER TABLE `comments`
- ADD CONSTRAINT `comments_ibfk_1` FOREIGN KEY (`club_id`) REFERENCES `clubs` (`id`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement