Ajout structure des tables SQL

This commit is contained in:
Michael RICOIS 2012-01-13 16:01:35 +00:00
parent ebf6e07607
commit 94bf9b4e21
2 changed files with 18 additions and 0 deletions

12
config/_sql/commandes.sql Normal file
View File

@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS `commandes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fichier` varchar(100) NOT NULL,
`idProfil` int(11) NOT NULL,
`nbLigne` int(11) NOT NULL,
`nbLigneT` int(11) NOT NULL,
`error` int(11) NOT NULL,
`dateAdded` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`dateStart` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`dateStop` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

6
config/_sql/profil.sql Normal file
View File

@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `profil` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`reference` varchar(50) NOT NULL,
`criteres` longtext NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;