Subversion Repositories Applications.referentiel

Rev

Rev 30 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30 Rev 44
Line 1... Line 1...
1
CREATE TABLE ref_triple (
1
CREATE TABLE IF NOT EXISTS `ref_triple` (
2
  id_triple INTEGER UNSIGNED  NOT NULL   AUTO_INCREMENT,
2
  `id_triple` int(10) unsigned NOT NULL auto_increment,
3
  ressource VARCHAR(255)  NULL  ,
3
  `ressource` varchar(255) default NULL,
4
  propriete VARCHAR(255)  NULL  ,
4
  `propriete` varchar(255) default NULL,
5
  valeur TEXT  NULL    ,
5
  `valeur` text,
6
PRIMARY KEY(id_triple)  ,
6
  PRIMARY KEY  (`id_triple`),
7
INDEX ressource(ressource)  ,
7
  KEY `ressource` (`ressource`),
8
INDEX propriete(propriete));
8
  KEY `propriete` (`propriete`)
9
 
-
 
10
 
-
 
-
 
9
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
11
 
10
 
12
CREATE TABLE ref_traitement (
11
CREATE TABLE IF NOT EXISTS `ref_traitement` (
13
  id_traitement INTEGER UNSIGNED  NOT NULL   AUTO_INCREMENT,
12
  `id_traitement` int(10) unsigned NOT NULL auto_increment,
14
  referentiel_code VARCHAR(50)  NULL  ,
13
  `referentiel_code` varchar(50) default NULL,
-
 
14
  `script` varchar(50) default NULL COMMENT 'Nom du script à lancer.',
15
  nom VARCHAR(100)  NULL  ,
15
  `nom` varchar(100) default NULL,
16
  date_debut DATETIME  NULL  ,
16
  `date_debut` datetime default NULL,
17
  date_fin DATETIME  NULL  ,
17
  `date_fin` datetime default NULL,
-
 
18
  `duree` time default NULL,
18
  meta_date_creation DATETIME  NULL    ,
19
  `meta_date_creation` datetime default NULL,
19
PRIMARY KEY(id_traitement));
20
  PRIMARY KEY  (`id_traitement`)
20
 
-
 
21
 
-
 
22
 
-
 
23
 
-
 
24
 
-
 
25
 
-
 
26
 
-
 
27
 
-
 
-
 
21
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
28
 
22
 
29
CREATE TABLE ref_resultat (
23
CREATE TABLE IF NOT EXISTS `ref_resultat` (
30
  id_resultat INTEGER UNSIGNED  NOT NULL   AUTO_INCREMENT,
24
  `id_resultat` int(10) unsigned NOT NULL auto_increment,
31
  ce_traitement INTEGER UNSIGNED  NULL  ,
25
  `ce_traitement` int(10) unsigned default NULL,
32
  nom VARCHAR(100)  NULL  ,
26
  `nom` varchar(100) default NULL,
33
  description TEXT  NULL  ,
27
  `description` text,
34
  resultat BOOL  NULL  ,
28
  `resultat` tinyint(1) default NULL,
35
  message MEDIUMTEXT  NULL  ,
29
  `message` mediumtext,
36
  meta_date_creation DATETIME  NULL    ,
30
  `meta_date_creation` datetime default NULL,
37
PRIMARY KEY(id_resultat)  ,
31
  PRIMARY KEY  (`id_resultat`),
38
INDEX ce_traitement(ce_traitement));
32
  KEY `ce_traitement` (`ce_traitement`)
39
 
-
 
40
 
-
 
41
 
-
 
42
 
-
 
-
 
33
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
43
34