diff --git a/scripts/build/config/_sql/sdv1.clients_contrat_tarifs.sql b/scripts/build/config/_sql/sdv1.clients_contrat_tarifs.sql index e5d50984..d1867f83 100644 --- a/scripts/build/config/_sql/sdv1.clients_contrat_tarifs.sql +++ b/scripts/build/config/_sql/sdv1.clients_contrat_tarifs.sql @@ -1,10 +1,11 @@ CREATE TABLE IF NOT EXISTS `clients_contrat_tarifs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `IdContrat` int(11) NOT NULL COMMENT 'Id du contrat', + `Category` varchar(50) NOT NULL COMMENT 'Type de l''élément', `Item` varchar(255) NOT NULL COMMENT 'Nom de l''élément', `Type` enum('Unitaire','ForfaitLimit','ForfaitNoLimit') NOT NULL COMMENT 'Type de comptabilisation', - `PriceUnit` float NOT NULL COMMENT 'Prix unitaire', - `MaxUnit` int(11) NOT NULL COMMENT 'Nombre maximum pour traitement', - `Doublon` enum('Jour','Mois','Periode') NOT NULL COMMENT 'Dédoublonnage', + `PriceUnit` float DEFAULT NULL COMMENT 'Prix unitaire', + `MaxUnit` int(11) DEFAULT NULL COMMENT 'Nombre maximum pour traitement', + `Doublon` enum('None','Jour','Mois','Periode') NOT NULL COMMENT 'Dédoublonnage', PRIMARY KEY (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ; \ No newline at end of file +) ENGINE=MyISAM DEFAULT CHARSET=latin1; \ No newline at end of file diff --git a/scripts/build/config/_sql/sdv1.commercial.sql b/scripts/build/config/_sql/sdv1.commercial.sql index e69de29b..9bee48c0 100644 --- a/scripts/build/config/_sql/sdv1.commercial.sql +++ b/scripts/build/config/_sql/sdv1.commercial.sql @@ -0,0 +1,6 @@ +CREATE TABLE IF NOT EXISTS `commercial` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `idSD` int(11) NOT NULL COMMENT 'ID utilisateurs', + `DisplayName` varchar(255) NOT NULL COMMENT 'Nom pour l''affichage', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Définition des commerciaux' ; \ No newline at end of file diff --git a/scripts/build/config/_sql/sdv1.logs_count_surveillance.sql b/scripts/build/config/_sql/sdv1.logs_count_surveillance.sql new file mode 100644 index 00000000..0dd6af02 --- /dev/null +++ b/scripts/build/config/_sql/sdv1.logs_count_surveillance.sql @@ -0,0 +1,11 @@ +CREATE TABLE IF NOT EXISTS `logs_count_surveillance` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `idClient` int(11) NOT NULL COMMENT 'ID du client', + `Service` varchar(50) NOT NULL COMMENT 'Code du service', + `Code` varchar(50) NOT NULL COMMENT 'Code de l''élément', + `Qte` int(11) NOT NULL COMMENT 'Quantité consommé', + `Annee` int(4) NOT NULL, + `Mois` int(2) NOT NULL, + `BatchUpdate` datetime NOT NULL COMMENT 'Date de mise à jour', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Table des consommations mensuel de consultation'; \ No newline at end of file