#--
#-- Script de création de la Base de données de Qware
#-- Généré le : ven. 04 déc. 2020 à 15:50
#-- Version du serveur :  10.3.24-MariaDB-2
#-- Version de PHP : 7.4.11
#-- Rooty <rooty@rooty.me>

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

#--
#-- Base de données : `{_DATABASE_}`
#--
USE `{_DATABASE_}`;
#---------------------------------------------------------
#--
#-- Structure de la table `object_account`
#--
#-- --------------------------------------------------------
#--
#-- Structure de la table `object_node_group_user_temp`
#--
CREATE TABLE `{_PREFIX_}object_node_group_user_temp` (
  `node_group_user_id` int(4) UNSIGNED NOT NULL,
  `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `group_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `object_textentrynode`
#--
CREATE TABLE `{_PREFIX_}object_textentrynode` (
  `textentrynode_id` int(4) UNSIGNED NOT NULL,
  `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `textentrynode_resume` text DEFAULT NULL,
  `textentrynode_text` text DEFAULT NULL,
  `langue_id` int(4) UNSIGNED NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `object_textinfo`
#--
CREATE TABLE `{_PREFIX_}object_textinfo` (
  `textinfo_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `textinfo_text_fr` text NOT NULL,
  `textinfo_text_gb` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `object_user_temp`
#--
CREATE TABLE `{_PREFIX_}object_user_temp` (
  `user_id` int(4) NOT NULL,
  `user_title` varchar(5) NOT NULL DEFAULT '',
  `user_first_name` varchar(40) NOT NULL DEFAULT '',
  `user_last_name` varchar(40) NOT NULL DEFAULT '',
  `user_login` varchar(20) NOT NULL DEFAULT '',
  `user_password` varchar(200) NOT NULL DEFAULT '',
  `user_mail` varchar(150) NOT NULL DEFAULT '',
  `user_birthdate` varchar(32) DEFAULT NULL,
  `user_website` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_msn` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_jabber` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_facebook` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_mastodon` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_postal_address` text NOT NULL,
  `user_postal_code` varchar(30) NOT NULL DEFAULT '',
  `user_city` varchar(100) NOT NULL DEFAULT '',
  `user_state` varchar(100) NOT NULL DEFAULT '',
  `user_country` varchar(100) NOT NULL DEFAULT '',
  `user_organisation` varchar(100) NOT NULL DEFAULT '',
  `user_tel` varchar(15) NOT NULL DEFAULT '',
  `user_fax` varchar(15) NOT NULL DEFAULT '',
  `user_comment` text NOT NULL,
  `user_info` text NOT NULL,
  `user_charte_status` tinyint(4) NOT NULL DEFAULT 0,
  `user_account_active` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;
#-- --------------------------------------------------------
#--
#-- Structure de la table `package_backup`
#--
CREATE TABLE `{_PREFIX_}package_backup` (
  `backup_id` int(4) NOT NULL,
  `backup_libelle` varchar(250) NOT NULL DEFAULT '',
  `backup_date` int(14) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `package_backupbd`
#--
CREATE TABLE `{_PREFIX_}package_backupbd` (
  `backupbd_id` int(4) UNSIGNED NOT NULL,
  `backupbd_nom` varchar(250) NOT NULL DEFAULT '',
  `backup_id` int(4) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `package_backupfile`
#--
CREATE TABLE `{_PREFIX_}package_backupfile` (
  `backupfile_id` int(4) UNSIGNED NOT NULL,
  `backupfile_new_name` varchar(250) NOT NULL DEFAULT '',
  `backupfile_old_name` varchar(250) NOT NULL DEFAULT '',
  `backup_id` int(4) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `package_file`
#--
CREATE TABLE `{_PREFIX_}package_file` (
  `file_id` int(4) UNSIGNED NOT NULL,
  `file_name` varchar(200) NOT NULL DEFAULT '',
  `file_type` varchar(10) NOT NULL DEFAULT '',
  `file_extention` varchar(20) NOT NULL DEFAULT '',
  `file_size` int(5) NOT NULL DEFAULT 0,
  `file_location` varchar(10) NOT NULL DEFAULT '',
  `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `coordination_object_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `user_id` int(4) NOT NULL DEFAULT 0,
  `file_limit_owner` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `package_filedata`
#--
CREATE TABLE `{_PREFIX_}package_filedata` (
  `filedata_id` int(4) UNSIGNED NOT NULL,
  `file_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `filedata_data` blob NOT NULL,
  `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `coordination_object_id` int(4) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `package_user_space`
#--
CREATE TABLE `{_PREFIX_}package_user_space` (
  `user_space_id` int(4) UNSIGNED NOT NULL,
  `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `user_space` int(10) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `cache_list_user_group`
#--
CREATE TABLE `{_PREFIX_}cache_list_user_group` (
  `cache_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `cache_index` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `cache_data` blob NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `cache_list_user_node`
#--
CREATE TABLE `{_PREFIX_}cache_list_user_node` (
  `cache_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `cache_index` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `cache_data` blob NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `cache_permission`
#--
CREATE TABLE `{_PREFIX_}cache_permission` (
  `cache_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `cache_index` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `cache_data` blob NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `cache_tree_group`
#--
CREATE TABLE `{_PREFIX_}cache_tree_group` (
  `cache_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `cache_index` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `cache_data` blob NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `cache_tree_node`
#--
CREATE TABLE `{_PREFIX_}cache_tree_node` (
  `cache_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `cache_index` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `cache_data` blob NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `coordination_object`
#--
CREATE TABLE `{_PREFIX_}coordination_object` (
  `coordination_object_id` int(4) UNSIGNED NOT NULL,
  `coordination_object_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `coordination_object_icone` varchar(200) NOT NULL DEFAULT '',
  `coordination_object_content_type` varchar(200) NOT NULL DEFAULT '',
  `coordination_object_name` text NOT NULL,
  `coordination_object_resume` text NOT NULL,
  `coordination_object_keyword` text NOT NULL,
  `coordination_object_parution` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `coordination_object_archivage` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `coordination_object_data` blob NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;
#-- --------------------------------------------------------
#--
#-- Structure de la table `group`
#--
CREATE TABLE `{_PREFIX_}group` (
  `group_id` int(4) UNSIGNED NOT NULL,
  `group_group_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `group_libelle` text NOT NULL,
  `group_icone` varchar(200) NOT NULL DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `group_user`
#--
CREATE TABLE `{_PREFIX_}group_user` (
  `group_user_id` int(4) UNSIGNED NOT NULL,
  `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `group_id` int(4) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1;
#-- --------------------------------------------------------
#--
#-- Structure de la table `langue`
#--
CREATE TABLE `{_PREFIX_}langue` (
  `langue_id` int(4) UNSIGNED NOT NULL,
  `langue_libelle` text NOT NULL,
  `langue_code` varchar(100) NOT NULL DEFAULT '',
  `langue_status` int(2) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `node`
#--
CREATE TABLE `{_PREFIX_}node` (
  `node_id` int(4) UNSIGNED NOT NULL,
  `node_node_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `node_libelle` text NOT NULL,
  `node_icone` varchar(200) NOT NULL DEFAULT '',
  `node_template` varchar(100) NOT NULL DEFAULT '',
  `node_domain` varchar(128) NOT NULL,
  `node_haspublic` enum('on','off') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'off',
  `node_ctype` enum('default','gaming','asso') DEFAULT 'default',
  `node_ctypereg` varchar(128) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `node_usergroupid` int(3) DEFAULT 0,
  `node_subsgroupid` int(3) DEFAULT 0,
  `node_subsgrouptempid` int(3) DEFAULT 0,
  `node_mailnode` varchar(128) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `node_group_user`
#--
CREATE TABLE `{_PREFIX_}node_group_user` (
  `node_group_user_id` int(4) UNSIGNED NOT NULL,
  `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `group_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `node_space`
#--
CREATE TABLE `{_PREFIX_}package_node_space` (
  `node_space_id` int(4) UNSIGNED NOT NULL,
  `node_space_nid` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `node_space` int(10) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `right`
#--
CREATE TABLE `{_PREFIX_}right` (
  `right_id` int(4) UNSIGNED NOT NULL,
  `coordination_object_content_type` varchar(200) NOT NULL DEFAULT '',
  `right_method_name` varchar(200) NOT NULL DEFAULT '',
  `coordination_object_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `node_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `user_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `group_id` int(4) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;
#-- --------------------------------------------------------
#--
#-- Structure de la table `session`
#--
CREATE TABLE `{_PREFIX_}session` (
  `user_session_id` varchar(32) NOT NULL DEFAULT '',
  `user_session_ip` varchar(16) NOT NULL DEFAULT '',
  `user_session_begin` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_session_last_action` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_session_url` text NOT NULL,
  `user_object` mediumblob NOT NULL,
  `user_preference_object` mediumblob NOT NULL,
  `language_object` mediumblob NOT NULL,
  `user_session_entry_node_id` int(4) NOT NULL DEFAULT 0,
  `user_session_navigation_node_id` int(4) NOT NULL DEFAULT 0,
  `user_session_vars` longblob NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
#-- --------------------------------------------------------
#--
#-- Structure de la table `user`
#--
CREATE TABLE `{_PREFIX_}user` (
  `user_id` int(4) NOT NULL,
  `user_title` varchar(5) NOT NULL DEFAULT '',
  `user_first_name` varchar(40) NOT NULL DEFAULT '',
  `user_last_name` varchar(40) NOT NULL DEFAULT '',
  `user_login` varchar(40) NOT NULL DEFAULT '',
  `user_password` varchar(200) NOT NULL DEFAULT '',
  `user_mail` varchar(150) NOT NULL DEFAULT '',
  `user_birthdate` varchar(32) NOT NULL DEFAULT '',
  `user_website` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `user_msn` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `user_jabber` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `user_facebook` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `user_mastodon` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `user_postal_address` text NOT NULL DEFAULT '',
  `user_postal_code` varchar(30) NOT NULL DEFAULT '',
  `user_city` varchar(100) NOT NULL DEFAULT '',
  `user_state` varchar(100) NOT NULL DEFAULT '',
  `user_country` varchar(100) NOT NULL DEFAULT '',
  `user_organisation` varchar(100) NOT NULL DEFAULT '',
  `user_tel` varchar(15) NOT NULL DEFAULT '',
  `user_fax` varchar(15) NOT NULL DEFAULT '',
  `user_comment` text NOT NULL DEFAULT '',
  `user_info` text NOT NULL DEFAULT '',
  `user_charte_status` tinyint(4) NOT NULL DEFAULT 0,
  `user_account_active` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;
#-- --------------------------------------------------------
#--
#-- Structure de la table `user_preference`
#--
CREATE TABLE `{_PREFIX_}user_preference` (
  `user_preference_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `langue_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `entry_node_id` int(4) UNSIGNED NOT NULL DEFAULT 0,
  `right_id` int(4) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

#--
#-- Index pour la table `{_PREFIX_}cache_list_user_group`
#--
ALTER TABLE `{_PREFIX_}cache_list_user_group`
  ADD PRIMARY KEY (`cache_id`,`cache_index`);

#--
#-- Index pour la table `{_PREFIX_}cache_list_user_node`
#--
ALTER TABLE `{_PREFIX_}cache_list_user_node`
  ADD PRIMARY KEY (`cache_id`,`cache_index`);

#--
#-- Index pour la table `{_PREFIX_}cache_permission`
#--
ALTER TABLE `{_PREFIX_}cache_permission`
  ADD PRIMARY KEY (`cache_id`,`cache_index`);

#--
#-- Index pour la table `{_PREFIX_}cache_tree_group`
#--
ALTER TABLE `{_PREFIX_}cache_tree_group`
  ADD PRIMARY KEY (`cache_id`,`cache_index`);

#--
#-- Index pour la table `{_PREFIX_}cache_tree_node`
#--
ALTER TABLE `{_PREFIX_}cache_tree_node`
  ADD PRIMARY KEY (`cache_id`,`cache_index`);

#--
#-- Index pour la table `{_PREFIX_}coordination_object`
#--
ALTER TABLE `{_PREFIX_}coordination_object`
  ADD PRIMARY KEY (`coordination_object_id`);

#--
#-- Index pour la table `{_PREFIX_}group`
#--
ALTER TABLE `{_PREFIX_}group`
  ADD PRIMARY KEY (`group_id`);

#--
#-- Index pour la table `{_PREFIX_}group_user`
#--
ALTER TABLE `{_PREFIX_}group_user`
  ADD PRIMARY KEY (`group_user_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `group_id` (`group_id`);

#--
#-- Index pour la table `{_PREFIX_}langue`
#--
ALTER TABLE `{_PREFIX_}langue`
  ADD PRIMARY KEY (`langue_id`),
  ADD KEY `status` (`langue_status`);

#--
#-- Index pour la table `{_PREFIX_}node`
#--
ALTER TABLE `{_PREFIX_}node`
  ADD PRIMARY KEY (`node_id`);

#--
#-- Index pour la table `{_PREFIX_}node_group_user`
#--
ALTER TABLE `{_PREFIX_}node_group_user`
  ADD PRIMARY KEY (`node_group_user_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `group_id` (`group_id`),
  ADD KEY `node_id` (`node_id`);

#--
#-- Index pour la table `{_PREFIX_}object_node_group_user_temp`
#--
ALTER TABLE `{_PREFIX_}object_node_group_user_temp`
  ADD PRIMARY KEY (`node_group_user_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `group_id` (`group_id`),
  ADD KEY `node_id` (`node_id`);

#--
#-- Index pour la table `{_PREFIX_}object_textentrynode`
#--
ALTER TABLE `{_PREFIX_}object_textentrynode`
  ADD PRIMARY KEY (`textentrynode_id`),
  ADD KEY `node_id` (`node_id`);

#--
#-- Index pour la table `{_PREFIX_}object_textinfo`
#--
ALTER TABLE `{_PREFIX_}object_textinfo`
  ADD PRIMARY KEY (`textinfo_id`);

#--
#-- Index pour la table `{_PREFIX_}object_user_temp`
#--
ALTER TABLE `{_PREFIX_}object_user_temp`
  ADD PRIMARY KEY (`user_id`),
  ADD KEY `user_login` (`user_login`),
  ADD KEY `user_password` (`user_password`),
  ADD KEY `user_mail` (`user_mail`);

#--
#-- Index pour la table `{_PREFIX_}package_backup`
#--
ALTER TABLE `{_PREFIX_}package_backup`
  ADD PRIMARY KEY (`backup_id`);

#--
#-- Index pour la table `{_PREFIX_}package_backupbd`
#--
ALTER TABLE `{_PREFIX_}package_backupbd`
  ADD PRIMARY KEY (`backupbd_id`);

#--
#-- Index pour la table `{_PREFIX_}package_backupfile`
#--
ALTER TABLE `{_PREFIX_}package_backupfile`
  ADD PRIMARY KEY (`backupfile_id`);

#--
#-- Index pour la table `{_PREFIX_}package_file`
#--
ALTER TABLE `{_PREFIX_}package_file`
  ADD PRIMARY KEY (`file_id`),
  ADD KEY `nid` (`node_id`),
  ADD KEY `oid` (`coordination_object_id`);

#--
#-- Index pour la table `{_PREFIX_}package_filedata`
#--
ALTER TABLE `{_PREFIX_}package_filedata`
  ADD PRIMARY KEY (`filedata_id`);

#--
#-- Index pour la table `{_PREFIX_}package_node_space`
#--
ALTER TABLE `{_PREFIX_}package_node_space`
  ADD PRIMARY KEY (`node_space_id`);

#--
#-- Index pour la table `{_PREFIX_}package_user_space`
#--
ALTER TABLE `{_PREFIX_}package_user_space`
  ADD PRIMARY KEY (`user_space_id`);

#--
#-- Index pour la table `{_PREFIX_}right`
#--
ALTER TABLE `{_PREFIX_}right`
  ADD PRIMARY KEY (`right_id`),
  ADD KEY `object_id` (`coordination_object_id`),
  ADD KEY `noeud_id` (`node_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `group_id` (`group_id`),
  ADD KEY `class_name` (`coordination_object_content_type`),
  ADD KEY `method_name` (`right_method_name`);

#--
#-- Index pour la table `{_PREFIX_}session`
#--
ALTER TABLE `{_PREFIX_}session`
  ADD PRIMARY KEY (`user_session_id`);


#--
#-- Index pour la table `{_PREFIX_}user`
#--
ALTER TABLE `{_PREFIX_}user`
  ADD PRIMARY KEY (`user_id`),
  ADD KEY `user_login` (`user_login`),
  ADD KEY `user_password` (`user_password`),
  ADD KEY `user_mail` (`user_mail`);

#--
#-- Index pour la table `{_PREFIX_}user_preference`
#--
ALTER TABLE `{_PREFIX_}user_preference`
  ADD PRIMARY KEY (`user_preference_id`);

#--
#-- AUTO_INCREMENT pour les tables déchargées
#--

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}coordination_object`
#--
ALTER TABLE `{_PREFIX_}coordination_object`
  MODIFY `coordination_object_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}group`
#--
ALTER TABLE `{_PREFIX_}group`
  MODIFY `group_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}group_user`
#--
ALTER TABLE `{_PREFIX_}group_user`
  MODIFY `group_user_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}langue`
#--
ALTER TABLE `{_PREFIX_}langue`
  MODIFY `langue_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}node`
#--
ALTER TABLE `{_PREFIX_}node`
  MODIFY `node_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}node_group_user`
#--
ALTER TABLE `{_PREFIX_}node_group_user`
  MODIFY `node_group_user_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}object_node_group_user_temp`
#--
ALTER TABLE `{_PREFIX_}object_node_group_user_temp`
  MODIFY `node_group_user_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}object_textentrynode`
#--
ALTER TABLE `{_PREFIX_}object_textentrynode`
  MODIFY `textentrynode_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}object_user_temp`
#--
ALTER TABLE `{_PREFIX_}object_user_temp`
  MODIFY `user_id` int(4) NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_backup`
#--
ALTER TABLE `{_PREFIX_}package_backup`
  MODIFY `backup_id` int(4) NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_backupbd`
#--
ALTER TABLE `{_PREFIX_}package_backupbd`
  MODIFY `backupbd_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_backupfile`
#--
ALTER TABLE `{_PREFIX_}package_backupfile`
  MODIFY `backupfile_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_file`
#--
ALTER TABLE `{_PREFIX_}package_file`
  MODIFY `file_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_filedata`
#--
ALTER TABLE `{_PREFIX_}package_filedata`
  MODIFY `filedata_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_node_space`
#--
ALTER TABLE `{_PREFIX_}package_node_space`
  MODIFY `node_space_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}package_user_space`
#--
ALTER TABLE `{_PREFIX_}package_user_space`
  MODIFY `user_space_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}right`
#--
ALTER TABLE `{_PREFIX_}right`
  MODIFY `right_id` int(4) UNSIGNED NOT NULL AUTO_INCREMENT;

#--
#-- AUTO_INCREMENT pour la table `{_PREFIX_}user`
#--
ALTER TABLE `{_PREFIX_}user`
  MODIFY `user_id` int(4) NOT NULL AUTO_INCREMENT;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
