CREATE TABLE IF NOT EXISTS `services` (
`serviceid` int(11) NOT NULL auto_increment,
`description` varchar(50) NOT NULL,
PRIMARY KEY (`serviceid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=102 ;
--
-- Dumping data for table `services`
--
INSERT INTO `services` (`serviceid`, `description`) VALUES
(1, '10% (outside area 2)'),
(3, 'Digital photos');
--
-- Table structure for table `clientservices`
--
CREATE TABLE IF NOT EXISTS `clientservices` (
`clientserviceid` int(11) NOT NULL auto_increment,
`serviceid` int(11) NOT NULL default '0',
`clientid` int(11) NOT NULL default '0',
PRIMARY KEY (`clientserviceid`),
KEY `services_list` (`clientid`,`serviceid`,`clientserviceid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=971 ;
--
-- Dumping data for table `clientservices`
--
INSERT INTO `clientservices` (`clientserviceid`, `serviceid`, `clientid`) VALUES
(727, 1, 2),
(729, 3, 2),
(910, 1, 3),
(912, 3, 3);
|