-- D5: data_dump.sql
-- Import AFTER creating the users, posts, and comments tables yourself.
-- users  table structure: id, name, created_at
-- posts  table structure: id, user_id, title, category, view_count, created_at
-- comments table structure: id, post_id, created_at

INSERT INTO `users` (`name`, `created_at`) VALUES
('Alice Johnson', '2026-01-10 09:00:00'),
('Bob Martinez', '2026-01-15 10:30:00'),
('Carol White', '2026-01-20 11:00:00'),
('David Kim', '2026-01-25 14:00:00'),
('Emma Davis', '2026-02-01 09:30:00'),
('Frank Wilson', '2026-02-05 10:00:00'),
('Grace Lee', '2026-02-10 13:00:00'),
('Henry Brown', '2026-02-15 15:00:00'),
('Irene Clark', '2026-02-20 09:00:00'),
('James Taylor', '2026-02-25 11:30:00');

INSERT INTO `posts` (`user_id`, `title`, `category`, `view_count`, `created_at`) VALUES
(1, 'Understanding JavaScript Closures', 'tech', 1240, '2026-01-12 09:00:00'),
(2, 'CSS Grid Layout in Practice', 'design', 870, '2026-01-14 10:00:00'),
(3, 'PHP PDO Connection Guide', 'backend', 530, '2026-01-16 11:00:00'),
(4, 'A Day in the Life of a Developer', 'life', 420, '2026-01-18 12:00:00'),
(5, 'REST API Design Principles', 'tech', 980, '2026-01-20 09:30:00'),
(6, 'Mastering Flexbox Layouts', 'design', 760, '2026-01-22 10:30:00'),
(7, 'MySQL Index Optimization', 'backend', 610, '2026-01-24 11:30:00'),
(8, 'Overcoming Developer Burnout', 'life', 310, '2026-01-26 13:00:00'),
(9, 'Mastering Async JavaScript', 'tech', 1450, '2026-01-28 09:00:00'),
(10, 'Color Theory for Web Designers', 'design', 540, '2026-01-30 10:00:00'),
(1, 'PHP Session Management', 'backend', 480, '2026-02-01 11:00:00'),
(2, 'How to Study Programming Effectively', 'life', 390, '2026-02-03 12:00:00'),
(3, 'Using the Fetch API', 'tech', 820, '2026-02-05 09:00:00'),
(4, 'Typography Fundamentals for the Web', 'design', 650, '2026-02-07 10:00:00'),
(5, 'SQL JOINs Explained', 'backend', 910, '2026-02-09 11:00:00'),
(6, 'Productivity Tips for Remote Work', 'life', 280, '2026-02-11 13:00:00'),
(7, 'How the JavaScript Event Loop Works', 'tech', 1120, '2026-02-13 09:00:00'),
(8, 'CSS Animation Techniques', 'design', 730, '2026-02-15 10:00:00'),
(9, 'Handling File Uploads in PHP', 'backend', 560, '2026-02-17 11:00:00'),
(10, 'Starting Your Side Project', 'life', 450, '2026-02-19 12:00:00'),
(1, 'Getting Started with TypeScript', 'tech', 990, '2026-02-21 09:00:00'),
(2, 'Designing Reusable UI Components', 'design', 680, '2026-02-23 10:00:00'),
(3, 'MySQL Transactions Explained', 'backend', 770, '2026-02-25 11:00:00'),
(4, 'Staying Healthy as a Developer', 'tech', 360, '2026-02-27 13:00:00'),
(5, 'Web Storage API Overview', 'tech', 840, '2026-03-01 09:00:00'),
(6, 'Responsive Design Patterns', 'design', 590, '2026-03-03 10:00:00'),
(7, 'Secure Coding Practices in PHP', 'backend', 820, '2026-03-05 11:00:00'),
(8, 'Building Your Developer Portfolio', 'tech', 510, '2026-03-07 12:00:00'),
(9, 'IntersectionObserver API in Depth', 'tech', 760, '2026-03-09 09:00:00'),
(10, 'SVG Animation from Scratch', 'design', 630, '2026-03-11 10:00:00'),
(1, 'MySQL Aggregate Functions', 'backend', 690, '2026-03-13 11:00:00'),
(2, 'How to Run Effective Code Reviews', 'backend', 340, '2026-03-15 13:00:00'),
(3, 'Promises and async/await in Depth', 'tech', 1080, '2026-03-17 09:00:00'),
(4, 'Practical CSS Variables', 'design', 560, '2026-03-19 10:00:00'),
(5, 'Building a RESTful API with PHP', 'backend', 940, '2026-03-21 11:00:00'),
(6, 'Contributing to Open Source', 'design', 290, '2026-03-23 12:00:00'),
(7, 'Optimizing DOM Manipulation', 'tech', 870, '2026-03-25 09:00:00'),
(8, 'Implementing Dark Mode', 'design', 720, '2026-03-27 10:00:00'),
(9, 'MySQL Subqueries Explained', 'backend', 640, '2026-03-29 11:00:00'),
(10, 'Developer Career Roadmap', 'life', 480, '2026-03-31 12:00:00'),
(1, 'Introduction to Web Workers', 'tech', 710, '2026-04-02 09:00:00'),
(2, 'Figma Plugins for Developers', 'design', 490, '2026-04-04 10:00:00'),
(3, 'PHP Caching Strategies', 'backend', 580, '2026-04-06 11:00:00'),
(4, 'Running a Tech Blog', 'life', 410, '2026-04-06 12:00:00'),
(5, 'Service Worker Fundamentals', 'tech', 930, '2026-04-07 09:00:00'),
(6, 'Advanced CSS Grid Techniques', 'design', 660, '2026-04-07 10:00:00'),
(7, 'Using MySQL Views', 'backend', 520, '2026-04-08 11:00:00'),
(8, 'Preparing for Developer Interviews', 'life', 870, '2026-04-08 13:00:00'),
(9, 'JavaScript Design Patterns', 'tech', 1190, '2026-04-09 09:00:00'),
(10, 'Building Accessible UI', 'design', 580, '2026-04-09 10:00:00'),
(1, 'Dependency Management in PHP', 'backend', 470, '2026-04-10 11:00:00');

INSERT INTO `comments` (`post_id`, `created_at`) VALUES
-- post 1 (18 comments)
(1,'2026-01-12 10:00:00'),(1,'2026-01-12 11:00:00'),(1,'2026-01-13 09:00:00'),
(1,'2026-01-13 14:00:00'),(1,'2026-01-14 10:00:00'),(1,'2026-01-15 09:00:00'),
(1,'2026-01-16 11:00:00'),(1,'2026-01-17 13:00:00'),(1,'2026-01-18 10:00:00'),
(1,'2026-01-19 09:00:00'),(1,'2026-01-20 14:00:00'),(1,'2026-01-21 10:00:00'),
(1,'2026-01-22 09:00:00'),(1,'2026-01-23 11:00:00'),(1,'2026-01-24 13:00:00'),
(1,'2026-01-25 10:00:00'),(1,'2026-01-26 09:00:00'),(1,'2026-01-27 11:00:00'),
-- post 9 (15 comments)
(9,'2026-01-28 10:00:00'),(9,'2026-01-29 11:00:00'),(9,'2026-01-30 09:00:00'),
(9,'2026-01-31 14:00:00'),(9,'2026-02-01 10:00:00'),(9,'2026-02-02 09:00:00'),
(9,'2026-02-03 11:00:00'),(9,'2026-02-04 13:00:00'),(9,'2026-02-05 10:00:00'),
(9,'2026-02-06 09:00:00'),(9,'2026-02-07 14:00:00'),(9,'2026-02-08 10:00:00'),
(9,'2026-02-09 09:00:00'),(9,'2026-02-10 11:00:00'),(9,'2026-02-11 13:00:00'),
-- post 17 (13 comments)
(17,'2026-02-13 10:00:00'),(17,'2026-02-14 11:00:00'),(17,'2026-02-15 09:00:00'),
(17,'2026-02-16 14:00:00'),(17,'2026-02-17 10:00:00'),(17,'2026-02-18 09:00:00'),
(17,'2026-02-19 11:00:00'),(17,'2026-02-20 13:00:00'),(17,'2026-02-21 10:00:00'),
(17,'2026-02-22 09:00:00'),(17,'2026-02-23 14:00:00'),(17,'2026-02-24 10:00:00'),
(17,'2026-02-25 09:00:00'),
-- post 33 (12 comments)
(33,'2026-03-17 10:00:00'),(33,'2026-03-18 11:00:00'),(33,'2026-03-19 09:00:00'),
(33,'2026-03-20 14:00:00'),(33,'2026-03-21 10:00:00'),(33,'2026-03-22 09:00:00'),
(33,'2026-03-23 11:00:00'),(33,'2026-03-24 13:00:00'),(33,'2026-03-25 10:00:00'),
(33,'2026-03-26 09:00:00'),(33,'2026-03-27 14:00:00'),(33,'2026-03-28 10:00:00'),
-- post 49 (11 comments)
(49,'2026-04-07 10:00:00'),(49,'2026-04-07 14:00:00'),(49,'2026-04-08 09:00:00'),
(49,'2026-04-08 11:00:00'),(49,'2026-04-08 14:00:00'),(49,'2026-04-09 09:00:00'),
(49,'2026-04-09 11:00:00'),(49,'2026-04-09 14:00:00'),(49,'2026-04-10 09:00:00'),
(49,'2026-04-10 11:00:00'),(49,'2026-04-10 14:00:00'),
-- post 5 (10 comments)
(5,'2026-01-20 11:00:00'),(5,'2026-01-21 09:00:00'),(5,'2026-01-22 13:00:00'),
(5,'2026-01-23 10:00:00'),(5,'2026-01-24 09:00:00'),(5,'2026-01-25 11:00:00'),
(5,'2026-01-26 14:00:00'),(5,'2026-01-27 10:00:00'),(5,'2026-01-28 09:00:00'),
(5,'2026-01-29 11:00:00'),
-- post 15 (9 comments)
(15,'2026-02-09 12:00:00'),(15,'2026-02-10 09:00:00'),(15,'2026-02-11 11:00:00'),
(15,'2026-02-12 14:00:00'),(15,'2026-02-13 10:00:00'),(15,'2026-02-14 09:00:00'),
(15,'2026-02-15 11:00:00'),(15,'2026-02-16 13:00:00'),(15,'2026-02-17 10:00:00'),
-- post 21 (8 comments)
(21,'2026-02-21 10:00:00'),(21,'2026-02-22 11:00:00'),(21,'2026-02-23 09:00:00'),
(21,'2026-02-24 14:00:00'),(21,'2026-02-25 10:00:00'),(21,'2026-02-26 09:00:00'),
(21,'2026-02-27 11:00:00'),(21,'2026-02-28 13:00:00'),
-- post 35 (7 comments)
(35,'2026-03-21 12:00:00'),(35,'2026-03-22 09:00:00'),(35,'2026-03-23 11:00:00'),
(35,'2026-03-24 14:00:00'),(35,'2026-03-25 10:00:00'),(35,'2026-03-26 09:00:00'),
(35,'2026-03-27 11:00:00'),
-- post 45 (7 comments)
(45,'2026-04-07 11:00:00'),(45,'2026-04-07 15:00:00'),(45,'2026-04-08 10:00:00'),
(45,'2026-04-08 13:00:00'),(45,'2026-04-09 09:00:00'),(45,'2026-04-09 12:00:00'),
(45,'2026-04-10 10:00:00'),
-- post 2 (6 comments)
(2,'2026-01-14 11:00:00'),(2,'2026-01-15 13:00:00'),(2,'2026-01-16 10:00:00'),
(2,'2026-01-17 09:00:00'),(2,'2026-01-18 11:00:00'),(2,'2026-01-19 14:00:00'),
-- post 7 (6 comments)
(7,'2026-01-24 12:00:00'),(7,'2026-01-25 09:00:00'),(7,'2026-01-26 11:00:00'),
(7,'2026-01-27 14:00:00'),(7,'2026-01-28 10:00:00'),(7,'2026-01-29 09:00:00'),
-- post 13 (5 comments)
(13,'2026-02-05 10:00:00'),(13,'2026-02-06 11:00:00'),(13,'2026-02-07 09:00:00'),
(13,'2026-02-08 14:00:00'),(13,'2026-02-09 10:00:00'),
-- post 27 (5 comments)
(27,'2026-03-05 12:00:00'),(27,'2026-03-06 09:00:00'),(27,'2026-03-07 11:00:00'),
(27,'2026-03-08 14:00:00'),(27,'2026-03-09 10:00:00'),
-- post 37 (5 comments)
(37,'2026-03-25 10:00:00'),(37,'2026-03-26 11:00:00'),(37,'2026-03-27 09:00:00'),
(37,'2026-03-28 14:00:00'),(37,'2026-03-29 10:00:00'),
-- post 3 (4 comments)
(3,'2026-01-16 12:00:00'),(3,'2026-01-17 10:00:00'),(3,'2026-01-18 09:00:00'),(3,'2026-01-19 11:00:00'),
-- post 11 (4 comments)
(11,'2026-02-01 12:00:00'),(11,'2026-02-02 09:00:00'),(11,'2026-02-03 11:00:00'),(11,'2026-02-04 14:00:00'),
-- post 23 (4 comments)
(23,'2026-02-25 12:00:00'),(23,'2026-02-26 09:00:00'),(23,'2026-02-27 11:00:00'),(23,'2026-02-28 14:00:00'),
-- post 29 (4 comments)
(29,'2026-03-09 10:00:00'),(29,'2026-03-10 11:00:00'),(29,'2026-03-11 09:00:00'),(29,'2026-03-12 14:00:00'),
-- post 48 (4 comments)
(48,'2026-04-08 14:00:00'),(48,'2026-04-09 10:00:00'),(48,'2026-04-09 15:00:00'),(48,'2026-04-10 09:00:00'),
-- post 6 (3 comments)
(6,'2026-01-22 11:00:00'),(6,'2026-01-23 09:00:00'),(6,'2026-01-24 14:00:00'),
-- post 10 (3 comments)
(10,'2026-01-30 11:00:00'),(10,'2026-01-31 09:00:00'),(10,'2026-02-01 14:00:00'),
-- post 18 (3 comments)
(18,'2026-02-15 11:00:00'),(18,'2026-02-16 09:00:00'),(18,'2026-02-17 14:00:00'),
-- post 25 (3 comments)
(25,'2026-03-01 10:00:00'),(25,'2026-03-02 11:00:00'),(25,'2026-03-03 09:00:00'),
-- post 41 (3 comments)
(41,'2026-04-02 10:00:00'),(41,'2026-04-03 11:00:00'),(41,'2026-04-04 09:00:00'),
-- post 46 (3 comments)
(46,'2026-04-07 12:00:00'),(46,'2026-04-08 10:00:00'),(46,'2026-04-09 11:00:00'),
-- post 4 (2 comments)
(4,'2026-01-18 13:00:00'),(4,'2026-01-19 10:00:00'),
-- post 8 (2 comments)
(8,'2026-01-26 14:00:00'),(8,'2026-01-27 10:00:00'),
-- post 14 (2 comments)
(14,'2026-02-07 11:00:00'),(14,'2026-02-08 09:00:00'),
-- post 20 (2 comments)
(20,'2026-02-19 13:00:00'),(20,'2026-02-20 10:00:00'),
-- post 30 (2 comments)
(30,'2026-03-11 10:00:00'),(30,'2026-03-12 11:00:00'),
-- post 43 (2 comments)
(43,'2026-04-06 12:00:00'),(43,'2026-04-07 09:00:00'),
-- post 12 (1 comment)
(12,'2026-02-03 13:00:00'),
-- post 16 (1 comment)
(16,'2026-02-11 14:00:00'),
-- post 22 (1 comment)
(22,'2026-02-23 11:00:00'),
-- post 26 (1 comment)
(26,'2026-03-03 11:00:00'),
-- post 32 (1 comment)
(32,'2026-03-15 14:00:00'),
-- post 36 (1 comment)
(36,'2026-03-23 13:00:00'),
-- post 44 (1 comment)
(44,'2026-04-06 13:00:00'),
-- post 47 (1 comment)
(47,'2026-04-08 12:00:00');
