1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| CREATE TABLE IF NOT EXISTS `projets` (
`id_projet` int(5) NOT NULL AUTO_INCREMENT,
`reference` varchar(150) NOT NULL,
`description` varchar(255) NOT NULL,
`lang_source` varchar(30) NOT NULL,
`date_d` date NOT NULL,
`date_f` date NOT NULL,
`nbjours` int(5) NOT NULL,
`prix_mot_m1` decimal(10,4) NOT NULL,
`prix_mot_m2` decimal(10,4) DEFAULT NULL,
`nbmj` int(15) NOT NULL,
`total_mots` int(10) NOT NULL,
`mots_m1` int(10) NOT NULL,
`mots_m2` int(10) DEFAULT NULL,
`total_prix_proj` decimal(10,2) NOT NULL,
`match_m1` varchar(20) NOT NULL,
`match_m2` varchar(20) DEFAULT NULL,
`id_client` int(5) NOT NULL,
`id_facture` int(5) DEFAULT NULL,
PRIMARY KEY (`id_projet`),
KEY `projets_ibfk_1` (`id_client`),
KEY `fk_idfact` (`id_facture`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=574 ; |
Partager