You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.9 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. DROP TABLE IF EXISTS `cloud_config`;
  2. CREATE TABLE `cloud_config` (
  3. `key` varchar(32) NOT NULL,
  4. `value` varchar(255) DEFAULT NULL,
  5. PRIMARY KEY (`key`)
  6. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  7. INSERT INTO `cloud_config` (`key`, `value`) VALUES
  8. ('admin_username', 'admin'),
  9. ('admin_password', '123456'),
  10. ('bt_url', ''),
  11. ('bt_key', ''),
  12. ('whitelist', '0'),
  13. ('download_page', '1'),
  14. ('new_version', '9.1.0'),
  15. ('update_msg', '暂无更新日志'),
  16. ('update_date', '2024-07-15'),
  17. ('new_version_win', '8.1.0'),
  18. ('update_msg_win', '暂无更新日志'),
  19. ('update_date_win', '2024-07-17'),
  20. ('new_version_btm', '2.3.0'),
  21. ('update_msg_btm', '暂无更新日志'),
  22. ('update_date_btm', '2024-04-24'),
  23. ('updateall_type', '0'),
  24. ('syskey', 'UqP94LtI8eWAIgCP');
  25. DROP TABLE IF EXISTS `cloud_black`;
  26. CREATE TABLE `cloud_black` (
  27. `id` int(11) NOT NULL AUTO_INCREMENT,
  28. `ip` varchar(20) NOT NULL,
  29. `enable` tinyint(1) NOT NULL DEFAULT '1',
  30. `addtime` datetime NOT NULL,
  31. PRIMARY KEY (`id`),
  32. UNIQUE KEY `ip`(`ip`)
  33. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  34. DROP TABLE IF EXISTS `cloud_white`;
  35. CREATE TABLE `cloud_white` (
  36. `id` int(11) NOT NULL AUTO_INCREMENT,
  37. `ip` varchar(20) NOT NULL,
  38. `enable` tinyint(1) NOT NULL DEFAULT '1',
  39. `addtime` datetime NOT NULL,
  40. PRIMARY KEY (`id`),
  41. UNIQUE KEY `ip`(`ip`)
  42. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  43. DROP TABLE IF EXISTS `cloud_record`;
  44. CREATE TABLE `cloud_record` (
  45. `id` int(11) NOT NULL AUTO_INCREMENT,
  46. `ip` varchar(200) NOT NULL,
  47. `addtime` datetime NOT NULL,
  48. `usetime` datetime NOT NULL,
  49. PRIMARY KEY (`id`),
  50. UNIQUE KEY `ip`(`ip`)
  51. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  52. DROP TABLE IF EXISTS `cloud_log`;
  53. CREATE TABLE `cloud_log` (
  54. `id` int(11) NOT NULL AUTO_INCREMENT,
  55. `uid` tinyint(4) NOT NULL DEFAULT '1',
  56. `action` varchar(40) NOT NULL,
  57. `data` varchar(150) DEFAULT NULL,
  58. `addtime` datetime NOT NULL,
  59. PRIMARY KEY (`id`)
  60. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;