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.

44 lines
1.6 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. `secret` varchar(200) DEFAULT '',
  8. `active` tinyint(4) DEFAULT '0',
  9. `namespaced` tinyint(4) DEFAULT '1',
  10. `lease_seconds` int(11) DEFAULT NULL,
  11. `date_requested` datetime DEFAULT NULL,
  12. `challenge_response` text,
  13. `date_confirmed` datetime DEFAULT NULL,
  14. `date_expires` datetime DEFAULT NULL,
  15. `date_unsubscribed` datetime DEFAULT NULL,
  16. `date_last_ping_sent` datetime DEFAULT NULL,
  17. `last_ping_status` int(11) DEFAULT NULL,
  18. `last_ping_headers` text,
  19. `last_ping_body` text,
  20. `last_ping_success` tinyint(4) DEFAULT NULL,
  21. `last_ping_error_delay` int(11) NOT NULL DEFAULT '0',
  22. `date_created` datetime DEFAULT NULL,
  23. `date_updated` datetime DEFAULT NULL,
  24. PRIMARY KEY (`id`),
  25. KEY `feed_id` (`feed_id`),
  26. KEY `hash` (`hash`)
  27. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  28. CREATE TABLE `feeds` (
  29. `id` bigint(11) NOT NULL AUTO_INCREMENT,
  30. `hash` varchar(190) DEFAULT NULL,
  31. `feed_url` text NOT NULL,
  32. `feed_type` enum('mf2','atom','rss') DEFAULT NULL,
  33. `push_last_ping_received` datetime DEFAULT NULL,
  34. `content_hash` varchar(255) DEFAULT NULL,
  35. `content_type` varchar(255) DEFAULT NULL,
  36. `content` longblob,
  37. `last_retrieved` datetime DEFAULT NULL,
  38. `date_created` datetime DEFAULT NULL,
  39. `date_updated` datetime DEFAULT NULL,
  40. PRIMARY KEY (`id`),
  41. UNIQUE KEY `hash` (`hash`),
  42. KEY `url` (`feed_url`(190))
  43. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;