1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| CREATE TABLE IF NOT EXISTS `achats` (
`achat_id` int(11) NOT NULL AUTO_INCREMENT,
`achat_commande_id` int(11) NOT NULL,
`achat_parent_id` int(11) NOT NULL,
`achat_item_id` int(11) NOT NULL,
`achat_item_type` tinyint(4) NOT NULL,
`achat_item_name` varchar(100) NOT NULL,
`achat_price` float NOT NULL,
`achat_quantity` tinyint(11) NOT NULL,
`achat_total` float NOT NULL,
`achat_statut` tinyint(4) NOT NULL,
PRIMARY KEY (`achat_id`),
KEY `achat_article_id` (`achat_item_id`),
KEY `achat_statut` (`achat_statut`),
KEY `achat_commande_id` (`achat_commande_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ; |
Partager