Created
July 2, 2014 11:47
-
-
Save smiler/d1e8e909ee207fc13308 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `auction_premium_users` ( | |
`auction_id` int(11) NOT NULL, | |
`user_id` int(11) NOT NULL, | |
PRIMARY KEY (`auction_id`,`user_id`), | |
KEY `a_idx` (`user_id`), | |
CONSTRAINT `premium_users_auctions` FOREIGN KEY (`auction_id`) REFERENCES `auctions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
CONSTRAINT `premium_users_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment