1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
-- --------------------------------------------------------
--
-- Structure de la table `item`
--
CREATE TABLE `item` (
`id` int(11) NOT NULL auto_increment,
`nom` varchar(255) NOT NULL,
`categorie` int(11) default NULL,
`description` text,
`panoplie` int(11) default NULL,
`bonus` text,
`malus` text,
`image` varchar(255) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `nom` (`nom`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Contenu de la table `item`
--
INSERT INTO `item` (`id`, `nom`, `categorie`, `description`, `panoplie`, `bonus`, `malus`, `image`) VALUES
(1, 'item de test', NULL, 'un malheureux item de test', NULL, NULL, NULL, NULL),
(2, 'un autre item', NULL, NULL, NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Structure de la table `monstre`
--
CREATE TABLE `monstre` (
`id` int(11) NOT NULL auto_increment,
`nom` varchar(255) NOT NULL,
`degat_max` int(255) default NULL,
`degat_min` int(6) default NULL,
`level_min` int(4) default NULL,
`level_max` int(4) default NULL,
`pa` tinyint(2) default NULL,
`pm` tinyint(2) default NULL,
`agressif` tinyint(1) default NULL,
`porte` tinyint(1) default NULL,
`race` int(11) default NULL,
`pv` int(4) default NULL,
`image` varchar(255) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`,`nom`),
UNIQUE KEY `nom` (`nom`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;
--
-- Contenu de la table `monstre`
--
INSERT INTO `monstre` (`id`, `nom`, `degat_max`, `degat_min`, `level_min`, `level_max`, `pa`, `pm`, `agressif`, `porte`, `race`, `pv`, `image`) VALUES
(1, 'Boulmog', 24, 24, 17, 20, 4, 4, 0, 0, 5, 199, ''),
(12, 'Piou Bleue', 12, 0, 1, 5, NULL, NULL, 0, 0, 0, 12, '1226504196.jpg');
-- --------------------------------------------------------
--
-- Structure de la table `monstre_loot`
--
CREATE TABLE `monstre_loot` (
`id` int(11) NOT NULL auto_increment,
`id_item` int(11) NOT NULL,
`id_monstre` int(11) NOT NULL,
`pourcentage` int(3) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_item` (`id_item`,`id_monstre`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Contenu de la table `monstre_loot`
--
INSERT INTO `monstre_loot` (`id`, `id_item`, `id_monstre`, `pourcentage`) VALUES
(1, 1, 1, 12),
(2, 2, 1, 12); |
Partager