-- Host: db-master-8.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=15532;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$pcCIcyv26xlQGgpsEMbLazpKYj/ILPm/b2qSVXbmsi0/OjeOu7ZQ0','user','ak_179d9af026978ac6','2023-04-22 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$tdKWUOokQeWf9Ye5QspRssVuPDvWboLnZ0emFjgnm.3XRIEMeNn2y','admin','ak_d6edc7b28a200b3f','2023-03-10 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$E4NrHCoIvFekrBzZlVq9WgcyXk6MyU3c6UMs8g8Aipa8H7uk8Nmg9','user','ak_37d584490cf0e00b','2023-09-23 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$UOXjpmi7L96rGkkv6fwiZLhXrIlQe5PsAR2IoxHpKfSq3tkrF7BTg','user','ak_2928e0babe019336','2023-11-15 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$I27nlCIAA.x649SmTnLg/aCeQvgNeIsuoKWjZw183jK5nP.Q0nGes','admin','ak_fbcabdf0d4ead473','2023-06-03 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$fiy8GSZpgQi5NgBTJ5IeXanJ.WzS7MsWVU5N.inNWt20tmujOLuH6','admin','ak_331be2af9e2315b6','2023-02-12 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$.s6QT7h2GJPbMC2eBJvQqA5AM61DnJK7a1nCnEl6sav7BcC9rwOkH','admin','ak_4eca1e7aa1419126','2023-11-25 10:18:00',NULL);

