CREATE TABLE IF NOT EXISTS `image_request` (
  `ID` int(11) NOT NULL auto_increment,
  `Title` varchar(255) NOT NULL,
  `Email` varchar(255) NOT NULL,
  `Status` tinyint(11) NOT NULL default '1',
  `Created` datetime NOT NULL,
  `Updated` datetime NOT NULL,
  PRIMARY KEY  (`ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;

CREATE TABLE IF NOT EXISTS `image_request_item` (
  `ID` int(11) NOT NULL auto_increment,
  `Gallery_Image_ID` int(11) NOT NULL,
  `Request_ID` int(11) NOT NULL,
  `Created` datetime NOT NULL,
  `Updated` datetime NOT NULL,
  PRIMARY KEY  (`ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;

CREATE TABLE IF NOT EXISTS `image_request_to_item` (
  `ID` int(11) NOT NULL auto_increment,
  `Request_ID` int(11) NOT NULL,
  `Request_Item_ID` int(11) NOT NULL,
  `Created` datetime NOT NULL,
  `Updated` datetime NOT NULL,
  PRIMARY KEY  (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;