20 lines
779 B
SQL
20 lines
779 B
SQL
--
|
|
-- 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,
|
|
`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',
|
|
`dateDebut` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
`duree` int(11) NOT NULL,
|
|
`terme` enum('fin','debut') NOT NULL DEFAULT 'fin',
|
|
`doublon` enum('jour','mois','period','') NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=MyISAM COMMENT='Définition des tarifs pour les clients et services' AUTO_INCREMENT=1 ; |