-- Host: db-master-7.internal    Database: analytics


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=30616;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=33880;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$XOFcOibllV9MvVF.6hzwMTVlEa2.WfKrirn08cUTPEEILYgnptX63','user','ak_18b74ceab8eb5687','2023-04-25 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$B/8c12nBCV.Qq21ZNoLSwpo.FkNbM5kIBgrVW5DwHM6F6cMviHUW7','user','ak_14e397f72847b324','2023-05-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$zD9S0Ajtawvbw44OLAx84tegrHxAIogHtBPEagCLRi0B/Z40eC7Ls','admin','ak_86ab80c525b14f18','2023-04-24 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$MWecQ8QL5kJl2AQSlWmaYrYr1KeWDoCM3K04t.g40t/hMhjY20FW0','user','ak_00cb535f9546c8ed','2023-06-14 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$TEIetY4yK44gY4/in1vB/chTyiLTkdbEU6ZxlBH87scE3XkIGKE.q','user','ak_2b4eb2ad32937057','2023-05-13 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$CUrIwwKecwJrjVh7CypY76N8qRXf2oKarc/0ipKFgDllPgr3KUVq/','user','ak_e2c12f1b37cb55f8','2023-09-13 10:17:00',NULL);

