SET FOREIGN_KEY_CHECKS=0;

INSERT IGNORE INTO `roles` (`id`, `name`) VALUES (5, 'journal_manager'), (6, 'reader');

INSERT IGNORE INTO `users` (`id`, `name`, `email`, `password_hash`, `status`, `created_at`) VALUES 
(5, 'Budi Journal Manager', 'manager@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(6, 'Siti Editor Satu', 'editor1@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(7, 'Agus Editor Dua', 'editor2@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(8, 'Rini Reviewer Ahli', 'reviewer1@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(9, 'Eko Reviewer Psikologi', 'reviewer2@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(10, 'Dwi Reviewer Konseling', 'reviewer3@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(11, 'Tri Reviewer Pendidikan', 'reviewer4@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(12, 'Sari Reviewer Tekno', 'reviewer5@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(13, 'Penulis Alpha', 'author1@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(14, 'Penulis Beta', 'author2@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(15, 'Penulis Gamma', 'author3@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(16, 'Penulis Delta', 'author4@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(17, 'Penulis Epsilon', 'author5@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(18, 'Penulis Zeta', 'author6@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(19, 'Penulis Eta', 'author7@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(20, 'Penulis Theta', 'author8@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(21, 'Pembaca Satu', 'reader1@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(22, 'Pembaca Dua', 'reader2@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(23, 'Pembaca Tiga', 'reader3@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(24, 'Pembaca Empat', 'reader4@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW()),
(25, 'Pembaca Lima', 'reader5@demo.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'active', NOW());

INSERT IGNORE INTO `user_roles` (`user_id`, `role_id`) VALUES 
(5, 4),
(5, 5),
(6, 4),
(6, 2),
(7, 4),
(7, 2),
(8, 4),
(8, 3),
(9, 4),
(9, 3),
(10, 4),
(10, 3),
(11, 4),
(11, 3),
(12, 4),
(12, 3),
(13, 4),
(14, 4),
(15, 4),
(16, 4),
(17, 4),
(18, 4),
(19, 4),
(20, 4),
(21, 4),
(21, 6),
(22, 4),
(22, 6),
(23, 4),
(23, 6),
(24, 4),
(24, 6),
(25, 4),
(25, 6);

INSERT INTO `journals` (`id`, `name`, `description`, `issn`, `e_issn`, `publisher`, `created_at`) VALUES
(1, 'Jurnal Konseling Kreatif dan Humanistik', 'Fokus pada inovasi dalam praktik konseling dan psikoterapi humanistik.', '1234-5678', '8765-4321', 'NexusPublisher', NOW()),
(2, 'Jurnal Psikologi Pendidikan Digital', 'Mengkaji aspek psikologis dalam ekosistem pendidikan digital dan edtech.', '1111-2222', '3333-4444', 'NexusPublisher', NOW()),
(3, 'Jurnal Karier dan Pengembangan Diri', 'Riset tentang jenjang karier, SDM, dan asesmen diri.', '5555-6666', '7777-8888', 'NexusPublisher', NOW());

INSERT INTO `submissions` (`id`, `journal_id`, `user_id`, `title`, `abstract`, `status`, `created_at`) VALUES 
(1, 1, 13, 'Pendekatan Art Therapy pada Remaja Introvert', 'Abstrak mengenai efek art therapy...', 'under_review', NOW() - INTERVAL 30 DAY),
(2, 1, 14, 'Teknik Jurnal Visual dalam Konseling Traumatik', 'Studi tentang penggunaan jurnal...', 'accepted', NOW() - INTERVAL 29 DAY),
(3, 1, 15, 'Efektivitas Konseling Peer-to-Peer di Sekolah Menengah', 'Peer counseling kesejahteraan siswa...', 'revision_required', NOW() - INTERVAL 28 DAY),
(4, 1, 16, 'Cognitive Behavioral Therapy via Chatbot', 'Pemanfaatan AI untuk CBT ringan...', 'published', NOW() - INTERVAL 27 DAY),
(5, 1, 17, 'Analisis Miskonsepsi Klien Terhadap Konseling Daring', 'Survei persepsi klien...', 'draft', NOW() - INTERVAL 26 DAY),
(6, 2, 18, 'Dampak Screen Time terhadap Memori Jangka Pendek', 'Penelitian eksperimen...', 'under_review', NOW() - INTERVAL 25 DAY),
(7, 2, 19, 'Gamifikasi dalam E-Learning: Motivasi versus Distraksi', 'Tinjauan literatur gamifikasi...', 'submitted', NOW() - INTERVAL 24 DAY),
(8, 2, 20, 'Kemandirian Belajar di Era Merdeka Belajar', 'Tingkat self-regulated learning...', 'rejected', NOW() - INTERVAL 23 DAY),
(9, 2, 13, 'Fenomena Zoom Fatigue pada Pengajar', 'Dampak psikologis kelas sinkronus...', 'published', NOW() - INTERVAL 22 DAY),
(10, 2, 14, 'Model Pembelajaran Flipped Classroom dengan AI', 'Inklusi AI generatif...', 'under_initial_check', NOW() - INTERVAL 21 DAY),
(11, 3, 15, 'Korelasi Kepribadian MBTI dengan Pemilihan Jenjang Karier', 'Riset empiris mahasiswa...', 'under_review', NOW() - INTERVAL 20 DAY),
(12, 3, 16, 'Quarter Life Crisis dan Burnout Kerja', 'Tinjauan studi kasus...', 'accepted', NOW() - INTERVAL 19 DAY),
(13, 3, 17, 'Pengaruh Gaya Kepemimpinan Transformasional pada Karir bawahan', 'Dampak pimpinan...', 'revision_required', NOW() - INTERVAL 18 DAY),
(14, 3, 18, 'Validasi Work-Life Balance Scale Versi Indonesia', 'Adaptasi instrumen WLBS...', 'under_initial_check', NOW() - INTERVAL 17 DAY),
(15, 3, 19, 'Peran Mentor Terhadap Kepuasan Kerja', 'Studi pada startup tech...', 'draft', NOW() - INTERVAL 16 DAY);

INSERT INTO `ai_review_insights` (`id`, `submission_id`, `status`, `insight_json`, `created_at`) VALUES 
(1, 1, 'completed', '{"rejection_risk_score":14,"editorial_readiness_score":74,"structure_score":88,"methodology_score":64,"novelty_score":75,"citation_score":75,"academic_tone_score":78,"weakness_analysis":"Kurangnya rujukan 5 tahun terakhir pada bab tinjauan pustaka.","improvement_recommendation":"Tambahkan teori terbaru mengenai objek material penelitian."}', NOW() - INTERVAL 10 DAY),
(2, 2, 'completed', '{"rejection_risk_score":35,"editorial_readiness_score":62,"structure_score":70,"methodology_score":60,"novelty_score":82,"citation_score":72,"academic_tone_score":86,"weakness_analysis":"Kurangnya rujukan 5 tahun terakhir pada bab tinjauan pustaka.","improvement_recommendation":"Tambahkan teori terbaru mengenai objek material penelitian."}', NOW() - INTERVAL 10 DAY),
(3, 3, 'completed', '{"rejection_risk_score":20,"editorial_readiness_score":74,"structure_score":94,"methodology_score":63,"novelty_score":72,"citation_score":85,"academic_tone_score":85,"weakness_analysis":"Kurangnya rujukan 5 tahun terakhir pada bab tinjauan pustaka.","improvement_recommendation":"Tambahkan teori terbaru mengenai objek material penelitian."}', NOW() - INTERVAL 10 DAY),
(4, 4, 'completed', '{"rejection_risk_score":14,"editorial_readiness_score":91,"structure_score":83,"methodology_score":67,"novelty_score":74,"citation_score":68,"academic_tone_score":83,"weakness_analysis":"Kurangnya rujukan 5 tahun terakhir pada bab tinjauan pustaka.","improvement_recommendation":"Tambahkan teori terbaru mengenai objek material penelitian."}', NOW() - INTERVAL 10 DAY),
(5, 5, 'completed', '{"rejection_risk_score":31,"editorial_readiness_score":73,"structure_score":86,"methodology_score":72,"novelty_score":53,"citation_score":83,"academic_tone_score":75,"weakness_analysis":"Kurangnya rujukan 5 tahun terakhir pada bab tinjauan pustaka.","improvement_recommendation":"Tambahkan teori terbaru mengenai objek material penelitian."}', NOW() - INTERVAL 10 DAY),
(6, 6, 'completed', '{"rejection_risk_score":10,"editorial_readiness_score":67,"structure_score":83,"methodology_score":79,"novelty_score":72,"citation_score":76,"academic_tone_score":89,"weakness_analysis":"Kurangnya rujukan 5 tahun terakhir pada bab tinjauan pustaka.","improvement_recommendation":"Tambahkan teori terbaru mengenai objek material penelitian."}', NOW() - INTERVAL 10 DAY),
(7, 7, 'completed', '{"rejection_risk_score":32,"editorial_readiness_score":66,"structure_score":85,"methodology_score":72,"novelty_score":76,"citation_score":78,"academic_tone_score":79,"weakness_analysis":"Kurangnya rujukan 5 tahun terakhir pada bab tinjauan pustaka.","improvement_recommendation":"Tambahkan teori terbaru mengenai objek material penelitian."}', NOW() - INTERVAL 10 DAY),
(8, 8, 'completed', '{"rejection_risk_score":15,"editorial_readiness_score":92,"structure_score":76,"methodology_score":65,"novelty_score":51,"citation_score":92,"academic_tone_score":88,"weakness_analysis":"Kurangnya rujukan 5 tahun terakhir pada bab tinjauan pustaka.","improvement_recommendation":"Tambahkan teori terbaru mengenai objek material penelitian."}', NOW() - INTERVAL 10 DAY),
(9, 9, 'completed', '{"rejection_risk_score":32,"editorial_readiness_score":67,"structure_score":92,"methodology_score":63,"novelty_score":85,"citation_score":81,"academic_tone_score":88,"weakness_analysis":"Kurangnya rujukan 5 tahun terakhir pada bab tinjauan pustaka.","improvement_recommendation":"Tambahkan teori terbaru mengenai objek material penelitian."}', NOW() - INTERVAL 10 DAY),
(10, 10, 'completed', '{"rejection_risk_score":36,"editorial_readiness_score":85,"structure_score":73,"methodology_score":90,"novelty_score":58,"citation_score":91,"academic_tone_score":75,"weakness_analysis":"Kurangnya rujukan 5 tahun terakhir pada bab tinjauan pustaka.","improvement_recommendation":"Tambahkan teori terbaru mengenai objek material penelitian."}', NOW() - INTERVAL 10 DAY);

INSERT INTO `editor_assignments` (`submission_id`, `editor_id`, `status`, `created_at`) VALUES 
(1, 6, 'assigned', NOW()),
(2, 7, 'assigned', NOW()),
(3, 6, 'assigned', NOW()),
(4, 7, 'assigned', NOW()),
(6, 7, 'assigned', NOW()),
(7, 7, 'assigned', NOW()),
(8, 7, 'assigned', NOW()),
(9, 7, 'assigned', NOW()),
(10, 7, 'assigned', NOW()),
(11, 7, 'assigned', NOW()),
(12, 7, 'assigned', NOW()),
(13, 7, 'assigned', NOW()),
(14, 6, 'assigned', NOW());

INSERT INTO `reviewer_profiles` (`user_id`, `affiliation`, `bio`) VALUES
(8, 'Universitas Psikologi Indonesia', 'Pakar art therapy.'),
(9, 'Institute of Tech', 'Fokus HCI dan Psikologi Pendidikan.'),
(10, 'Kampus Bimbingan Konseling', 'Konselor tersertifikasi.'),
(11, 'Universitas Mengajar', 'Dosen Pendidikan.'),
(12, 'Tech Edu Center', 'Peneliti E-Learning.');

INSERT INTO `reviewer_badges` (`id`, `name`, `icon`, `description`) VALUES
(1, 'Fast Reviewer', 'fa-bolt', 'Menyelesaikan review kurang dari 7 hari.'),
(2, 'Constructive Reviewer', 'fa-comment-dots', 'Feedback selalu mendetail dan membangun.'),
(3, 'Methodology Expert', 'fa-microscope', 'Sangat teliti dalam metodologi riset.');

INSERT INTO `reviewer_badge_logs` (`user_id`, `badge_id`, `awarded_at`) VALUES
(8, 1, NOW() - INTERVAL 10 DAY), (8, 2, NOW() - INTERVAL 5 DAY), (9, 3, NOW() - INTERVAL 8 DAY);

INSERT INTO `review_assignments` (`id`, `submission_id`, `reviewer_id`, `status`, `created_at`) VALUES 
(1, 1, 8, 'accepted', NOW() - INTERVAL 5 DAY),
(2, 3, 8, 'accepted', NOW() - INTERVAL 5 DAY),
(3, 6, 8, 'accepted', NOW() - INTERVAL 5 DAY),
(4, 11, 8, 'accepted', NOW() - INTERVAL 5 DAY),
(5, 2, 9, 'completed', NOW() - INTERVAL 20 DAY),
(6, 4, 9, 'completed', NOW() - INTERVAL 20 DAY),
(7, 12, 9, 'completed', NOW() - INTERVAL 20 DAY);

INSERT INTO `review_reports` (`assignment_id`, `comments_for_author`, `comments_for_editor`, `methodology_feedback`, `recommendation`, `created_at`) VALUES 
(5, 'Sudah sangat baik', 'Bisa langsung diterbitkan', 'Methodologi kuat', 'accept', NOW() - INTERVAL 15 DAY),
(6, 'Sudah sangat baik', 'Bisa langsung diterbitkan', 'Methodologi kuat', 'accept', NOW() - INTERVAL 15 DAY),
(7, 'Sudah sangat baik', 'Bisa langsung diterbitkan', 'Methodologi kuat', 'accept', NOW() - INTERVAL 15 DAY);

INSERT INTO `issues` (`id`, `journal_id`, `title`, `volume`, `number`, `year`, `is_published`, `published_at`) VALUES
(1, 1, 'Vol 1 No 1 (2025): Konseling Kontemporer', 1, 1, 2025, 1, NOW() - INTERVAL 30 DAY),
(2, 2, 'Vol 1 No 1 (2025): Digital Education', 1, 1, 2025, 1, NOW() - INTERVAL 40 DAY),
(3, 3, 'Vol 1 No 1 (2025): Dinamika Karier', 1, 1, 2025, 0, NULL);

INSERT INTO `published_articles` (`id`, `issue_id`, `submission_id`, `published_at`) VALUES
(1, 1, 4, NOW() - INTERVAL 30 DAY),
(2, 2, 9, NOW() - INTERVAL 40 DAY);

INSERT INTO `article_html_contents` (`article_id`, `html_content`) VALUES
(1, '<h3>1. Pendahuluan</h3><p>Penelitian ini mengeksplorasi penggunaan CBT via Chatbot...</p><h3>2. Metodologi</h3><p>Menggunakan eksperimen kuasi...</p>'), (2, '<h3>1. Latar Belakang</h3><p>Zoom fatigue makin merajalela...</p>');

INSERT INTO `article_references` (`article_id`, `citation_text`, `doi`) VALUES
(1, 'Smith, J. (2020). AI in Counseling. Journal of Tech, 1(1), 1-10.', '10.dummy/123'),
(1, 'Doe, A. (2022). Chatbot Efficacy. EduPsych, 2(2), 20-30.', '10.dummy/456');

INSERT INTO `article_concept_maps` (`article_id`, `map_data_json`) VALUES (1, '{\"nodes\":[\"Chatbot\",\"CBT\",\"Anxiety\"],\"edges\":[[\"Chatbot\",\"CBT\"],[\"CBT\",\"Anxiety\"]]}');

INSERT INTO `article_views` (`article_id`, `viewed_at`, `ip_address`) VALUES (1, NOW() - INTERVAL 26 DAY, '192.168.1.233'),
(1, NOW() - INTERVAL 13 DAY, '192.168.1.34'),
(1, NOW() - INTERVAL 29 DAY, '192.168.1.56'),
(1, NOW() - INTERVAL 29 DAY, '192.168.1.163'),
(1, NOW() - INTERVAL 23 DAY, '192.168.1.241'),
(1, NOW() - INTERVAL 7 DAY, '192.168.1.169'),
(1, NOW() - INTERVAL 29 DAY, '192.168.1.38'),
(1, NOW() - INTERVAL 22 DAY, '192.168.1.240'),
(1, NOW() - INTERVAL 10 DAY, '192.168.1.234'),
(1, NOW() - INTERVAL 4 DAY, '192.168.1.205'),
(1, NOW() - INTERVAL 27 DAY, '192.168.1.57'),
(1, NOW() - INTERVAL 28 DAY, '192.168.1.227'),
(1, NOW() - INTERVAL 30 DAY, '192.168.1.58'),
(1, NOW() - INTERVAL 27 DAY, '192.168.1.37'),
(1, NOW() - INTERVAL 16 DAY, '192.168.1.146'),
(1, NOW() - INTERVAL 23 DAY, '192.168.1.204'),
(1, NOW() - INTERVAL 27 DAY, '192.168.1.210'),
(1, NOW() - INTERVAL 15 DAY, '192.168.1.235'),
(1, NOW() - INTERVAL 24 DAY, '192.168.1.68'),
(1, NOW() - INTERVAL 12 DAY, '192.168.1.43'),
(1, NOW() - INTERVAL 4 DAY, '192.168.1.205'),
(1, NOW() - INTERVAL 6 DAY, '192.168.1.196'),
(1, NOW() - INTERVAL 13 DAY, '192.168.1.195'),
(1, NOW() - INTERVAL 17 DAY, '192.168.1.132'),
(1, NOW() - INTERVAL 28 DAY, '192.168.1.8'),
(1, NOW() - INTERVAL 18 DAY, '192.168.1.18'),
(1, NOW() - INTERVAL 23 DAY, '192.168.1.15'),
(1, NOW() - INTERVAL 3 DAY, '192.168.1.24'),
(1, NOW() - INTERVAL 4 DAY, '192.168.1.48'),
(1, NOW() - INTERVAL 2 DAY, '192.168.1.104'),
(1, NOW() - INTERVAL 27 DAY, '192.168.1.211'),
(1, NOW() - INTERVAL 6 DAY, '192.168.1.1'),
(1, NOW() - INTERVAL 13 DAY, '192.168.1.80'),
(1, NOW() - INTERVAL 6 DAY, '192.168.1.154'),
(1, NOW() - INTERVAL 16 DAY, '192.168.1.43'),
(1, NOW() - INTERVAL 8 DAY, '192.168.1.102'),
(1, NOW() - INTERVAL 22 DAY, '192.168.1.110'),
(1, NOW() - INTERVAL 11 DAY, '192.168.1.211'),
(1, NOW() - INTERVAL 13 DAY, '192.168.1.11'),
(1, NOW() - INTERVAL 9 DAY, '192.168.1.34'),
(1, NOW() - INTERVAL 13 DAY, '192.168.1.113'),
(1, NOW() - INTERVAL 15 DAY, '192.168.1.126'),
(1, NOW() - INTERVAL 4 DAY, '192.168.1.29'),
(1, NOW() - INTERVAL 20 DAY, '192.168.1.8'),
(1, NOW() - INTERVAL 3 DAY, '192.168.1.212'),
(1, NOW() - INTERVAL 20 DAY, '192.168.1.254'),
(1, NOW() - INTERVAL 17 DAY, '192.168.1.197'),
(1, NOW() - INTERVAL 20 DAY, '192.168.1.20'),
(1, NOW() - INTERVAL 26 DAY, '192.168.1.23'),
(1, NOW() - INTERVAL 14 DAY, '192.168.1.20'),
(2, NOW() - INTERVAL 10 DAY, '192.168.1.234'),
(2, NOW() - INTERVAL 5 DAY, '192.168.1.134'),
(2, NOW() - INTERVAL 23 DAY, '192.168.1.100'),
(2, NOW() - INTERVAL 2 DAY, '192.168.1.74'),
(2, NOW() - INTERVAL 23 DAY, '192.168.1.100'),
(2, NOW() - INTERVAL 19 DAY, '192.168.1.12'),
(2, NOW() - INTERVAL 27 DAY, '192.168.1.167'),
(2, NOW() - INTERVAL 16 DAY, '192.168.1.21'),
(2, NOW() - INTERVAL 20 DAY, '192.168.1.251'),
(2, NOW() - INTERVAL 28 DAY, '192.168.1.92'),
(2, NOW() - INTERVAL 22 DAY, '192.168.1.193'),
(2, NOW() - INTERVAL 18 DAY, '192.168.1.116'),
(2, NOW() - INTERVAL 26 DAY, '192.168.1.224'),
(2, NOW() - INTERVAL 26 DAY, '192.168.1.250'),
(2, NOW() - INTERVAL 19 DAY, '192.168.1.96'),
(2, NOW() - INTERVAL 17 DAY, '192.168.1.138'),
(2, NOW() - INTERVAL 15 DAY, '192.168.1.59'),
(2, NOW() - INTERVAL 20 DAY, '192.168.1.32'),
(2, NOW() - INTERVAL 7 DAY, '192.168.1.194'),
(2, NOW() - INTERVAL 27 DAY, '192.168.1.238'),
(2, NOW() - INTERVAL 30 DAY, '192.168.1.252'),
(2, NOW() - INTERVAL 26 DAY, '192.168.1.176'),
(2, NOW() - INTERVAL 8 DAY, '192.168.1.200'),
(2, NOW() - INTERVAL 6 DAY, '192.168.1.53'),
(2, NOW() - INTERVAL 26 DAY, '192.168.1.1'),
(2, NOW() - INTERVAL 23 DAY, '192.168.1.51'),
(2, NOW() - INTERVAL 17 DAY, '192.168.1.122'),
(2, NOW() - INTERVAL 16 DAY, '192.168.1.125'),
(2, NOW() - INTERVAL 4 DAY, '192.168.1.183'),
(2, NOW() - INTERVAL 26 DAY, '192.168.1.25');

INSERT INTO `research_profiles` (`user_id`, `bio`, `institution`, `google_scholar_id`) VALUES
(13, 'Peneliti di bidang psikologi klinis', 'Universitas A', 'GS1234'),
(14, 'Dosen Bimbingan Konseling', 'Universitas B', 'GS5678');

INSERT INTO `communities` (`id`, `name`, `description`, `created_by`) VALUES
(1, 'Forum Konselor Digital', 'Diskusi seputar e-counseling.', 13),
(2, 'EdTech Researchers', 'Kumpulan peneliti pendidikan teknologi.', 14);

INSERT INTO `community_posts` (`id`, `community_id`, `user_id`, `title`, `content`) VALUES
(1, 1, 13, 'Trend AI dalam Konseling 2026', 'Bagaimana menurut rekan-rekan tentang peran AI?'),
(2, 2, 14, 'Gamifikasi kurang efektif?', 'Saya menemukan data anomali pada reset saya.');

SET FOREIGN_KEY_CHECKS=1;
