-- Host: db-master-5.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=46025;

--
-- 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=47216;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$MyyFTl13og/.S4qizARmcG51IbmoS1R8QcH6pSIddOQANXhlzqqEe','user','ak_5ab06e4ee8f2133e','2023-01-25 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$QEeJGvWoDF.GSDf4sVgqgT81n9v8q/Z7J2f9U10x0h95EdyCpO1rj','user','ak_205bf640352a6730','2023-01-14 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$7ye6RU2/uE0qLdldEif6xR8jtv84bdJjeJX2K9kCDKSjaIMeYZCrI','user','ak_5bb8ef854d7d9157','2023-06-23 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$TNqwVDR3m2ebzP3R/sengIhHPAW1iG7smQs1NN3qZlw/B3X6STArL','admin','ak_756b9df6ce0a40f4','2023-10-18 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$8siCCq9Yw0Comh8TfzOD/RpA.zovuEmIo5FMjtvDQT0OK7KXBacNX','user','ak_0e7989f93fc5c623','2023-01-15 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$QPHL8nIMLNUW.zaU69C4lOz695l0VmASvL1IlJH9axM7wuJ69sXtr','admin','ak_c2648334c9fff3b2','2023-11-04 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$eSvDc44lD0LlMwtnNyWxelPci7Znfop8llx6Bb3tPyokFCnyCV3vv','admin','ak_bbbd2c06f7e104f9','2023-05-16 10:10:00',NULL);

