3 -- https://www.phpmyadmin.net/
5 -- Hôte : localhost:3306
6 -- Généré le : jeu. 21 fév. 2019 à 23:46
7 -- Version du serveur : 5.7.25-0ubuntu0.18.04.2
8 -- Version de PHP : 7.2.15-0ubuntu0.18.04.1
10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
13 SET time_zone = "+00:00";
16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 /*!40101 SET NAMES utf8mb4 */;
22 -- Base de données : `nel`
25 -- --------------------------------------------------------
28 -- Structure de la table `domain`
31 CREATE TABLE `domain` (
32 `domain_id` int(10) UNSIGNED NOT NULL,
33 `domain_name` varchar(32) NOT NULL DEFAULT '',
34 `status` enum('ds_close','ds_dev','ds_restricted','ds_open') NOT NULL DEFAULT 'ds_dev',
35 `patch_version` int(10) UNSIGNED NOT NULL DEFAULT '0',
36 `backup_patch_url` varchar(255) DEFAULT NULL,
38 `login_address` varchar(255) NOT NULL DEFAULT '',
39 `session_manager_address` varchar(255) NOT NULL DEFAULT '',
40 `ring_db_name` varchar(255) NOT NULL DEFAULT '',
41 `web_host` varchar(255) NOT NULL DEFAULT '',
42 `web_host_php` varchar(255) NOT NULL DEFAULT '',
43 `description` varchar(200) DEFAULT NULL
44 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
46 -- --------------------------------------------------------
49 -- Structure de la table `permission`
52 CREATE TABLE `permission` (
53 `UId` int(10) UNSIGNED NOT NULL DEFAULT '0',
54 `ClientApplication` char(64) NOT NULL DEFAULT 'r2',
55 `ShardId` int(10) NOT NULL DEFAULT '-1',
56 `AccessPrivilege` set('DEV','RESTRICTED','OPEN') NOT NULL DEFAULT 'OPEN',
57 `prim` int(10) UNSIGNED NOT NULL
58 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
60 -- --------------------------------------------------------
63 -- Structure de la table `shard`
66 CREATE TABLE `shard` (
67 `ShardId` int(10) NOT NULL DEFAULT '0',
68 `domain_id` int(11) UNSIGNED NOT NULL DEFAULT '0',
69 `WsAddr` varchar(64) DEFAULT NULL,
70 `NbPlayers` int(10) UNSIGNED DEFAULT '0',
71 `Name` varchar(255) DEFAULT 'unknown shard',
72 `WSOnline` tinyint(1) UNSIGNED DEFAULT '0',
73 `ClientApplication` varchar(64) DEFAULT 'ryzom',
74 `Version` varchar(64) NOT NULL DEFAULT '',
75 `PatchURL` varchar(255) NOT NULL DEFAULT '',
76 `DynPatchURL` varchar(255) NOT NULL DEFAULT '',
77 `FixedSessionId` int(11) UNSIGNED NOT NULL DEFAULT '0',
78 `State` enum('ds_close','ds_dev','ds_restricted','ds_open') NOT NULL DEFAULT 'ds_dev',
80 `prim` int(10) UNSIGNED NOT NULL
81 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='contains all shards informations for login system';
83 -- --------------------------------------------------------
86 -- Structure de la table `user`
90 `UId` int(10) NOT NULL,
91 `Login` varchar(64) NOT NULL DEFAULT '',
92 `Password` varchar(13) DEFAULT NULL,
93 `ShardId` int(10) NOT NULL DEFAULT '-1',
94 `State` enum('Offline','Online') NOT NULL DEFAULT 'Offline',
95 `Privilege` varchar(255) DEFAULT NULL,
96 `GroupName` varchar(255) NOT NULL DEFAULT '',
97 `FirstName` varchar(255) NOT NULL DEFAULT '',
98 `LastName` varchar(255) NOT NULL DEFAULT '',
99 `Birthday` varchar(32) NOT NULL DEFAULT '',
100 `Gender` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
101 `Country` char(2) NOT NULL DEFAULT '',
102 `Email` varchar(255) NOT NULL DEFAULT '',
103 `Address` varchar(255) NOT NULL DEFAULT '',
104 `City` varchar(100) NOT NULL DEFAULT '',
105 `PostalCode` varchar(10) NOT NULL DEFAULT '',
106 `USState` char(2) NOT NULL DEFAULT '',
107 `Chat` char(2) NOT NULL DEFAULT '0',
108 `BetaKeyId` int(10) UNSIGNED NOT NULL DEFAULT '0',
109 `CachedCoupons` varchar(255) NOT NULL DEFAULT '',
110 `ProfileAccess` varchar(45) DEFAULT NULL,
111 `Level` int(2) NOT NULL DEFAULT '0',
112 `CurrentFunds` int(4) NOT NULL DEFAULT '0',
113 `IdBilling` varchar(255) NOT NULL DEFAULT '',
114 `Community` char(2) NOT NULL DEFAULT '--',
115 `Newsletter` tinyint(1) NOT NULL DEFAULT '1',
116 `Account` varchar(64) NOT NULL DEFAULT '',
117 `ChoiceSubLength` tinyint(2) NOT NULL DEFAULT '0',
118 `CurrentSubLength` varchar(255) NOT NULL DEFAULT '0',
119 `ValidIdBilling` int(4) NOT NULL DEFAULT '0',
120 `GMId` int(4) NOT NULL DEFAULT '0',
121 `ExtendedPrivilege` varchar(255) NOT NULL DEFAULT '',
122 `ToolsGroup` varchar(255) NOT NULL DEFAULT '',
123 `Unsubscribe` date DEFAULT NULL,
124 `SubDate` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
125 `SubIp` varchar(20) NOT NULL DEFAULT '',
126 `SecurePassword` varchar(32) NOT NULL DEFAULT '',
127 `LastInvoiceEmailCheck` date DEFAULT NULL,
128 `FromSource` varchar(8) NOT NULL DEFAULT '',
129 `ValidMerchantCode` varchar(11) NOT NULL DEFAULT '',
130 `PBC` tinyint(1) NOT NULL DEFAULT '0'
131 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
134 -- Index pour les tables déchargées
138 -- Index pour la table `domain`
141 ADD PRIMARY KEY (`domain_id`),
142 ADD UNIQUE KEY `name_idx` (`domain_name`);
145 -- Index pour la table `permission`
147 ALTER TABLE `permission`
148 ADD PRIMARY KEY (`prim`),
149 ADD KEY `UIdIndex` (`UId`);
152 -- Index pour la table `shard`
155 ADD PRIMARY KEY (`prim`);
158 -- Index pour la table `user`
161 ADD PRIMARY KEY (`UId`),
162 ADD KEY `LoginIndex` (`Login`),
163 ADD KEY `GroupIndex` (`GroupName`),
164 ADD KEY `Email` (`Email`),
165 ADD KEY `ToolsGroup` (`ToolsGroup`),
166 ADD KEY `CurrentSubLength` (`CurrentSubLength`),
167 ADD KEY `Community` (`Community`),
168 ADD KEY `GMId` (`GMId`);
171 -- AUTO_INCREMENT pour les tables déchargées
175 -- AUTO_INCREMENT pour la table `domain`
178 MODIFY `domain_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
181 -- AUTO_INCREMENT pour la table `permission`
183 ALTER TABLE `permission`
184 MODIFY `prim` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
187 -- AUTO_INCREMENT pour la table `shard`
190 MODIFY `prim` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
193 -- AUTO_INCREMENT pour la table `user`
196 MODIFY `UId` int(10) NOT NULL AUTO_INCREMENT;
199 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
200 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
201 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;