This commit is contained in:
parent
42e9293bd6
commit
5c660a7b3e
@ -1,14 +0,0 @@
|
||||
--
|
||||
-- Structure de la table `logsCount`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `logsCount` (
|
||||
`jour` date NOT NULL COMMENT 'Jour de la consommation',
|
||||
`idClient` int(11) NOT NULL,
|
||||
`service` char(20) NOT NULL,
|
||||
`login` char(20) NOT NULL,
|
||||
`log` char(20) NOT NULL COMMENT 'Nom de l''élément consommé',
|
||||
`conso` int(11) NOT NULL COMMENT 'Nombre de consommation',
|
||||
`batchUpdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Date de mise à jour par Batch',
|
||||
UNIQUE KEY `jour` (`jour`,`idClient`,`service`,`login`,`log`)
|
||||
) ENGINE=MyISAM COMMENT='Calcul des consommations';
|
7
scripts/build/config/_sql/sdv1.clients_commercial.sql
Normal file
7
scripts/build/config/_sql/sdv1.clients_commercial.sql
Normal file
@ -0,0 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS `clients_commercial` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`idClient` int(11) NOT NULL COMMENT 'ID du client',
|
||||
`idCommercial` int(11) NOT NULL COMMENT 'ID du commercial',
|
||||
`DateDebut` date NOT NULL COMMENT 'Date de debut de la relation',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Lien commercial-client' ;
|
@ -0,0 +1,8 @@
|
||||
CREATE TABLE IF NOT EXISTS `clients_commercial_mvt` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`idClient` int(11) NOT NULL COMMENT 'ID du client',
|
||||
`idCommercial` int(11) NOT NULL COMMENT 'ID du commercial',
|
||||
`DateDebut` int(11) NOT NULL COMMENT 'Date de debut de la relation',
|
||||
`DateFin` date NOT NULL COMMENT 'Date de fin de la relation',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Lien commercial-client historique' ;
|
0
scripts/build/config/_sql/sdv1.commercial.sql
Normal file
0
scripts/build/config/_sql/sdv1.commercial.sql
Normal file
11
scripts/build/config/_sql/sdv1.logs_count_consultation.sql
Normal file
11
scripts/build/config/_sql/sdv1.logs_count_consultation.sql
Normal file
@ -0,0 +1,11 @@
|
||||
CREATE TABLE IF NOT EXISTS `logs_count_consultation` (
|
||||
`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' ;
|
8
scripts/build/config/_sql/sdv1.logs_item.sql
Normal file
8
scripts/build/config/_sql/sdv1.logs_item.sql
Normal file
@ -0,0 +1,8 @@
|
||||
CREATE TABLE IF NOT EXISTS `logs_item` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`Code` varchar(50) NOT NULL COMMENT 'Code de l''élément',
|
||||
`Label` varchar(255) NOT NULL COMMENT 'Libellé de l''élément',
|
||||
`Description` varchar(255) NOT NULL,
|
||||
`Category` enum('consultation','surveillance','flux') NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Référencement des éléments à comptabiliser' ;
|
Loading…
Reference in New Issue
Block a user