WebOrbiton
v3.0.0.2

FlatlyPage

16 lines · 614 B
  1. -- newsletter.sql - Database structure
  2. -- Run this in phpMyAdmin SQL tab
  3. CREATE TABLE IF NOT EXISTS `newsletter_subscribers` (
  4. `id` int(11) NOT NULL AUTO_INCREMENT,
  5. `email` varchar(255) NOT NULL,
  6. `token` varchar(64) NOT NULL,
  7. `confirmed` tinyint(1) DEFAULT 0,
  8. `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  9. `confirmed_at` timestamp NULL DEFAULT NULL,
  10. `ip_address` varchar(45) DEFAULT NULL,
  11. PRIMARY KEY (`id`),
  12. UNIQUE KEY `email` (`email`),
  13. KEY `idx_token` (`token`),
  14. KEY `idx_confirmed` (`confirmed`)
  15. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;