SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;

CREATE TABLE `admin` (
  `id` int(11) NOT NULL,
  `username` char(20) NOT NULL,
  `password` char(32) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED;

INSERT INTO `admin` (`id`, `username`, `password`) VALUES
(3, 'admin', 'e10adc3949ba59abbe56e057f20f883e');

ALTER TABLE `admin`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `admin`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

CREATE TABLE `book` (
  `id` int(11) NOT NULL,
  `username` varchar(20) NOT NULL DEFAULT '',
  `verify` varchar(200) DEFAULT NULL,
  `img` varchar(20) DEFAULT NULL,
  `come` varchar(20) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `homepage` varchar(50) DEFAULT NULL,
  `ip` varchar(20) DEFAULT NULL,
  `content` mediumtext NOT NULL,
  `posttime` datetime DEFAULT NULL,
  `reply` mediumtext,
  `replytime` datetime DEFAULT NULL,
  `dream` varchar(200) DEFAULT NULL,
  `user_img` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT INTO `book` (`id`, `username`, `verify`, `img`, `come`, `email`, `homepage`, `ip`, `content`, `posttime`, `reply`, `replytime`, `dream`, `user_img`) VALUES
(17, '王坤', '<img src=\"images/six/icon_v.svg\"/>', '', NULL, NULL, NULL, '', '欢迎使用互动客厅8.0，期待你愉快的探索和使用。', '2026-07-28 00:00:00', '', '2026-07-28 00:00:00', '来自<a href=\"../m\" title=\"来自本人移动端发布\" target=\"_blank\">本人发布</a>', '<img src=\"images/six/wangkun2026.jpg\"/>');

ALTER TABLE `book`
  ADD PRIMARY KEY (`id`);
ALTER TABLE `book` ADD FULLTEXT KEY `ip` (`ip`);

ALTER TABLE `book`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=876775;

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 */;