CREATE TABLE `parties` (
  `id` int(11) NOT NULL,
  `code_acces` varchar(10) NOT NULL,
  `etat_jeu` longtext NOT NULL,
  `statut` enum('attente','en_cours','terminee') NOT NULL DEFAULT 'attente',
  `joueur_tour` int(11) NOT NULL DEFAULT 1,
  `date_creation` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB;

--
-- Index pour les tables déchargées
--

--
-- Index pour la table `parties`
--
ALTER TABLE `parties`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT pour les tables déchargées
--

--
-- AUTO_INCREMENT pour la table `parties`
--
ALTER TABLE `parties`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;