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.

41 lines
1.5 KiB

  1. CREATE TABLE `subscriptions` (
  2. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  3. `hash` varchar(100) DEFAULT NULL,
  4. `feed_id` bigint(20) DEFAULT NULL,
  5. `callback_url` text,
  6. `challenge` varchar(100) DEFAULT '',
  7. `active` tinyint(4) DEFAULT '0',
  8. `namespaced` tinyint(4) DEFAULT '1',
  9. `lease_seconds` int(11) DEFAULT NULL,
  10. `date_requested` datetime DEFAULT NULL,
  11. `challenge_response` text,
  12. `date_confirmed` datetime DEFAULT NULL,
  13. `date_expires` datetime DEFAULT NULL,
  14. `date_unsubscribed` datetime DEFAULT NULL,
  15. `date_last_ping_sent` datetime DEFAULT NULL,
  16. `last_ping_status` int(11) DEFAULT NULL,
  17. `last_ping_headers` text,
  18. `last_ping_body` text,
  19. `last_ping_success` tinyint(4) DEFAULT NULL,
  20. `last_ping_error_delay` int(11) NOT NULL DEFAULT '0',
  21. `date_created` datetime DEFAULT NULL,
  22. `date_updated` datetime DEFAULT NULL,
  23. PRIMARY KEY (`id`),
  24. KEY `feed_id` (`feed_id`),
  25. KEY `hash` (`hash`)
  26. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  27. CREATE TABLE `feeds` (
  28. `id` bigint(11) NOT NULL AUTO_INCREMENT,
  29. `hash` varchar(190) DEFAULT NULL,
  30. `feed_url` text NOT NULL,
  31. `feed_type` enum('mf2','atom','rss') DEFAULT NULL,
  32. `push_last_ping_received` datetime DEFAULT NULL,
  33. `content_hash` varchar(255) DEFAULT NULL,
  34. `last_retrieved` datetime DEFAULT NULL,
  35. `date_created` datetime DEFAULT NULL,
  36. `date_updated` datetime DEFAULT NULL,
  37. PRIMARY KEY (`id`),
  38. UNIQUE KEY `hash` (`hash`),
  39. KEY `url` (`feed_url`(190))
  40. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;