issue #0001265 : Ajout structure des nouvelles tables
This commit is contained in:
parent
38dc915281
commit
6e4e4956d7
20
config/_sql/historiques.bilans.sql
Normal file
20
config/_sql/historiques.bilans.sql
Normal file
@ -0,0 +1,20 @@
|
||||
CREATE TABLE IF NOT EXISTS `bilans` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`siren` int(9) unsigned zerofill NOT NULL,
|
||||
`dateProvPartenaire` int(8) unsigned NOT NULL,
|
||||
`dateExercice` int(8) unsigned NOT NULL,
|
||||
`dateExercicePre` int(8) unsigned NOT NULL,
|
||||
`dureeExercice` tinyint(2) unsigned NOT NULL DEFAULT '0',
|
||||
`dureeExercicePre` tinyint(2) unsigned NOT NULL DEFAULT '0',
|
||||
`monnaie` char(3) NOT NULL COMMENT 'Code devise du bilan stocké en base selon la ISO 4217 (3 lettres)',
|
||||
`typeBilan` char(1) NOT NULL DEFAULT '',
|
||||
`monnaieOrigine` char(3) NOT NULL COMMENT 'Code devise d''origine selon la ISO 4217 (3 lettres)',
|
||||
`unite` char(1) NOT NULL DEFAULT '',
|
||||
`postes` text NOT NULL,
|
||||
`partenaire` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
`confidentiel` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
`dateInsert` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `idxSirenDateBilan` (`siren`,`dateExercice`,`typeBilan`),
|
||||
KEY `dateInsert` (`dateInsert`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Bilans';
|
10
config/_sql/jo.bilans_user.sql
Normal file
10
config/_sql/jo.bilans_user.sql
Normal file
@ -0,0 +1,10 @@
|
||||
CREATE TABLE IF NOT EXISTS `bilans_user` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`idUtilisateur` int(11) NOT NULL,
|
||||
`login` varchar(20) NOT NULL,
|
||||
`siren` varchar(9) NOT NULL,
|
||||
`dateExercice` int(8) NOT NULL,
|
||||
`typeBilan` char(1) NOT NULL,
|
||||
`dateAction` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
Loading…
Reference in New Issue
Block a user