webservice/config/_sql/clientsTarif.sql

20 lines
779 B
MySQL
Raw Normal View History

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,
`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',
`doublon` enum('jour','mois','period','') NOT NULL,
2012-05-23 12:41:00 +00:00
PRIMARY KEY (`id`)
) ENGINE=MyISAM COMMENT='Définition des tarifs pour les clients et services' AUTO_INCREMENT=1 ;