Est-ce utile de faire une 2e tables ?
Posté : 19 déc. 2006, 01:36
Bonjour,
Je me suis lancé dans la création d'un composant pour Joomla et je me pose une question pour la création des tables !
Voici un 1er jet pour les tables
Je me suis lancé dans la création d'un composant pour Joomla et je me pose une question pour la création des tables !
Voici un 1er jet pour les tables
DROP TABLE IF EXISTS `#__cat`</query>
CREATE TABLE #__cat (
`id` INT NOT NULL AUTO_INCREMENT,
`#__users_id` INT NOT NULL,
`#__cat_recup_id` INT NOT NULL,
`date` DATE NOT NULL default '0000-00-00',
`vitesse1` DECIMAL(3,2) NULL,
`vitesss2` DECIMAL(3,2) NULL,
`vitesse3` DECIMAL(3,2) NULL,
`fc1` SMALLINT(3) UNSIGNED NULL,
`fc2` SMALLINT(3) UNSIGNED NULL,
`fcmax` SMALLINT(3) UNSIGNED NULL,
`fcrecup` SMALLINT(3) UNSIGNED NULL,
`vma` DECIMAL(2,2) NULL,
`vo2max` INTEGER UNSIGNED NULL,
`fcca` SMALLINT UNSIGNED NULL,
`pma` DECIMAL NULL,
`tica1000` TIME NULL,
`PRIMARY` KEY(`id`),
INDEX `#__cat_FKIndex1`(`#__cat_recup_id`),
INDEX `#__cat_FKIndex2`(`#__users_id`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS `#__cat`</query>
CREATE TABLE #__cat_recup (
`id` INT NOT NULL AUTO_INCREMENT,
`recup` VARCHAR(20) NULL,
PRIMARY KEY(`id`)
) TYPE=MyISAM;
Je me demande si la 2e table a un interêt dans le sens où il n'y aura que 6 entrées :
D'avance merci"Excellente", "Très bonne", "Bonne", "Moyenne", "Médiocre", "Mauvaise" et "Très mauvaise"