 
 -- --------------------------------------------------------
 
+--
+--   `users_data`
+--
+
 CREATE TABLE `users_data` (
   `dev_id` int(9) NOT NULL,
   `user_id` int(11) NOT NULL,
-  `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-
--- --------------------------------------------------------
+  `data` varbinary(600) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+--   `users_messages`
+--
 
 CREATE TABLE `users_messages` (
   `id` char(36) CHARACTER SET ascii COLLATE ascii_bin NOT NULL,

-- phpMyAdmin SQL Dump

-- --------------------------------------------------------

CREATE TABLE `conference` (
  `dev_id` int(11) NOT NULL,


-- --------------------------------------------------------

--
--   `users_time`
--

CREATE TABLE `users_time` (
  `dev_id` int(9) NOT NULL,
  `user_id` int(11) NOT NULL,
  `time` int(11) NOT NULL DEFAULT 0
) ENGINE=MEMORY DEFAULT CHARSET=utf8;

--
--  ё 
--

--
--   `conference`
--
ALTER TABLE `conference`
  ADD PRIMARY KEY (`dev_id`,`name`,`user_id`);

--
--   `dev_config`
--
ALTER TABLE `dev_config`
  ADD PRIMARY KEY (`id`),
  ADD KEY `key` (`key`);

--
--   `log_event`
--
ALTER TABLE `log_event`
  ADD PRIMARY KEY (`id`);

--
--   `log_query`
--
ALTER TABLE `log_query`
  ADD PRIMARY KEY (`id`);

--
--   `pipes_settings`
--
ALTER TABLE `pipes_settings`
  ADD PRIMARY KEY (`dev_id`,`name`),
  ADD KEY `name` (`name`),
  ADD KEY `dev_id` (`dev_id`);

--
--   `pipe_messages`
--
ALTER TABLE `pipe_messages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `time` (`time`),
  ADD KEY `pipe_name` (`pipe_name`),
  ADD KEY `dev_id` (`dev_id`);

--
--   `revoked_tokens`
--
ALTER TABLE `revoked_tokens`
  ADD PRIMARY KEY (`dev_id`,`token`);

--
--   `users_auth`
--
ALTER TABLE `users_auth`
  ADD PRIMARY KEY (`dev_id`,`user_id`),
  ADD KEY `dev_id` (`dev_id`),
  ADD KEY `user_id` (`user_id`);

--
--   `users_data`
--
ALTER TABLE `users_data`
  ADD PRIMARY KEY (`dev_id`,`user_id`),
  ADD KEY `dev_id` (`dev_id`),
  ADD KEY `user_id` (`user_id`);

--
--   `users_messages`
--
ALTER TABLE `users_messages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `dev_id` (`dev_id`),
