2012-05-23 12:41:00 +00:00
|
|
|
--
|
|
|
|
-- Structure de la table `clientsTarif`
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `clientsTarif` (
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`idClient` int(11) NOT NULL,
|
|
|
|
`service` char(20) NOT NULL,
|
|
|
|
`login` char(20) NOT NULL,
|
|
|
|
`log` char(20) NOT NULL,
|
2012-06-14 15:55:38 +00:00
|
|
|
`type` enum('Unitaire','ForfaitLimit','ForfaitIllimit') NOT NULL,
|
|
|
|
`priceForfait` float NOT NULL DEFAULT '0',
|
|
|
|
`priceUnit` float NOT NULL DEFAULT '0',
|
|
|
|
`limit` int(11) NOT NULL DEFAULT '0',
|
2012-05-23 12:41:00 +00:00
|
|
|
`dateDebut` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
|
|
`duree` int(11) NOT NULL,
|
|
|
|
`terme` enum('fin','debut') NOT NULL DEFAULT 'fin',
|
2012-06-14 15:55:38 +00:00
|
|
|
`doublon` enum('jour','mois','period','') NOT NULL,
|
2012-05-23 12:41:00 +00:00
|
|
|
PRIMARY KEY (`id`)
|
2012-06-14 15:55:38 +00:00
|
|
|
) ENGINE=MyISAM COMMENT='Définition des tarifs pour les clients et services' AUTO_INCREMENT=1 ;
|