1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| CREATE TABLE `visite` (
`idvisite` int(11) NOT NULL auto_increment,
`date_visite` datetime NOT NULL default '0000-00-00 00:00:00',
`idpersonne` int(11) NOT NULL default '0',
`idnation` int(11) NOT NULL default '0',
`idstat` int(11) default '0',
`idhebergement` int(11) NOT NULL default '0',
`idrevenu` int(11) NOT NULL default '0',
`idorientation` int(11) NOT NULL default '0',
PRIMARY KEY (`idvisite`),
UNIQUE KEY `date_visite` (`date_visite`),
KEY `visite_ibfk_1` (`idpersonne`),
KEY `visite_ibfk_2` (`idstat`),
KEY `visite_ibfk_3` (`idnation`),
KEY `visite_ibfk_4` (`idorientation`),
KEY `visite_ibfk_5` (`idrevenu`),
KEY `visite_ibfk_6` (`idhebergement`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
-- |
Partager