-- Host: db-master-1.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=6104;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$rSpMgHTXFbjfUc0A7vsQpJ2yKE6x1oDh2cq6xVUbaFjUImd6R9mYt','user','ak_3bcdfdfb80fbf55a','2023-10-19 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$rRP8e39a61sYS.PLqkfmieAp23uMLdlYM8i0biOxSWyjfayz3tME7','user','ak_c1890b606561ac5a','2023-08-11 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$QRUZnuRJ92wXERSpFHnM6r/SUHrPYA2h9DS6I2DnvzFpifPdWb7Sb','admin','ak_0efd4a9766773da4','2023-06-05 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$2nq4Gt54oY4VK7rGk2bjepT7zFTbAVHBsJWMEzGCa9oDmMfrYgE7I','user','ak_d50b9639a360207f','2023-01-22 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$.wekYFD4jWhZBbfKG6JxpHisH.mjCqIWzQPanWBXhl3VMiljtSbkH','user','ak_525618a9a348bb74','2023-03-16 10:21:00',NULL);

