20171002.sql 955 B

1234567891011121314151617181920212223
  1. -- ----------------------------
  2. -- Table structure for `user_subscribe`
  3. -- ----------------------------
  4. CREATE TABLE `user_subscribe` (
  5. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  6. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  7. `code` varchar(255) DEFAULT '' COMMENT '订阅地址唯一识别码',
  8. `times` int(11) NOT NULL DEFAULT '0' COMMENT '地址请求次数',
  9. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  10. PRIMARY KEY (`id`)
  11. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  12. -- ----------------------------
  13. -- Table structure for `user_subscribe_log`
  14. -- ----------------------------
  15. CREATE TABLE `user_subscribe_log` (
  16. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  17. `sid` int(11) DEFAULT NULL COMMENT '对应user_subscribe的id',
  18. `request_ip` varchar(20) DEFAULT NULL COMMENT '请求IP',
  19. `request_time` datetime DEFAULT NULL COMMENT '请求时间',
  20. PRIMARY KEY (`id`)
  21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;