Want more features on Pastebin? Sign Up, it's FREE!
Guest

subs model

By: a guest on Feb 16th, 2011  |  syntax: SQL  |  size: 0.31 KB  |  views: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CREATE TABLE IF NOT EXISTS `users_subscriptions` (
  2.   `id` INT(11) NOT NULL AUTO_INCREMENT,
  3.   `user_id` INT(11) NOT NULL,
  4.   `subscription_id` INT(11) NOT NULL,
  5.   PRIMARY KEY (`id`),
  6.   KEY `subscriber_id` (`subscription_id`),
  7.   KEY `user_id` (`user_id`)
  8. ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
clone this paste RAW Paste Data