cAuth.sql 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : Localhost
  4. Source Server Type : MySQL
  5. Source Server Version : 50717
  6. Source Host : localhost
  7. Source Database : cAuth
  8. Target Server Type : MySQL
  9. Target Server Version : 50717
  10. File Encoding : utf-8
  11. Date: 08/10/2017 22:22:52 PM
  12. */
  13. SET NAMES utf8;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for `cSessionInfo`
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `cSessionInfo`;
  19. CREATE TABLE `cSessionInfo` (
  20. `open_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  21. `uuid` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  22. `skey` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  23. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  24. `last_visit_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  25. `session_key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  26. `user_info` varchar(2048) COLLATE utf8mb4_unicode_ci NOT NULL,
  27. PRIMARY KEY (`open_id`),
  28. KEY `openid` (`open_id`) USING BTREE,
  29. KEY `skey` (`skey`) USING BTREE
  30. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='会话管理用户信息';
  31. SET FOREIGN_KEY_CHECKS = 1;