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 */; -- -- 数据库: `fmhs_radio_song` -- -- -------------------------------------------------------- -- -- 表的结构 `blacklist` -- CREATE TABLE `blacklist` ( `id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- 表的结构 `history` -- CREATE TABLE `history` ( `date` date NOT NULL, `list` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- 表的结构 `record` -- CREATE TABLE `record` ( `recId` int(11) NOT NULL, `date` date NOT NULL, `pid` int(11) NOT NULL, `id` text NOT NULL, `uid` int(11) NOT NULL, `time` bigint(20) NOT NULL, `status` text ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- 表的结构 `system` -- CREATE TABLE `system` ( `notice` longtext NOT NULL, `timeInterval` text NOT NULL, `openWeek` text NOT NULL, `refreshDay` tinyint(4) NOT NULL, `switcher` tinytext NOT NULL, `ignoreTime` tinytext NOT NULL, `systemKey` tinyint(4) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- 表的结构 `users` -- CREATE TABLE `users` ( `uid` int(11) NOT NULL, `type` text NOT NULL, `nickname` text NOT NULL, `songNumsLimit` int(11) NOT NULL DEFAULT '1000', `songTimeUsed` int(11) NOT NULL DEFAULT '0', `songLastTime` date NOT NULL DEFAULT '1970-01-01', `name` text, `status` tinytext, `ban` tinytext, `message` longtext, `auth` json DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- 表的结构 `whitelist` -- CREATE TABLE `whitelist` ( `id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 转储表的索引 -- -- -- 表的索引 `blacklist` -- ALTER TABLE `blacklist` ADD PRIMARY KEY (`id`); -- -- 表的索引 `history` -- ALTER TABLE `history` ADD PRIMARY KEY (`date`); -- -- 表的索引 `record` -- ALTER TABLE `record` ADD PRIMARY KEY (`recId`); -- -- 表的索引 `system` -- ALTER TABLE `system` ADD PRIMARY KEY (`systemKey`); -- -- 表的索引 `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`uid`); -- -- 表的索引 `whitelist` -- ALTER TABLE `whitelist` ADD PRIMARY KEY (`id`); -- -- 在导出的表使用AUTO_INCREMENT -- -- -- 使用表AUTO_INCREMENT `record` -- ALTER TABLE `record` MODIFY `recId` int(11) 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 */;