CREATE TABLE IF NOT EXISTS `side_banner` (
  `ID` int(11) NOT NULL auto_increment,
  `_undeletable` tinyint(1) default NULL,
  `Title` varchar(255) default NULL,
  `Order_By` int(11) default NULL,
  `Created` datetime default NULL,
  `Updated` datetime default NULL,
  PRIMARY KEY  (`ID`),
  KEY `Order_By` (`Order_By`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1;

CREATE TABLE IF NOT EXISTS `side_banner_image` (
  `ID` int(11) NOT NULL auto_increment,
  `Side_Banner_ID` int(11) default NULL,
  `Title` varchar(255) default NULL,
  `Alt` varchar(255) default NULL,
  `Description` text,
  `Link` varchar(255) default NULL,
  `Order_By` int(11) default NULL,
  `Created` datetime default NULL,
  `Updated` datetime default NULL,
  PRIMARY KEY  (`ID`),
  KEY `Banner_ID` (`Side_Banner_ID`),
  KEY `Order_By` (`Order_By`),
  KEY `Select` (`Side_Banner_ID`,`Order_By`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1;