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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$LVXXu4YzpyIVGcpP/EkISM7AWdprnlrM0kKUrSorwRI9XqanQKa2P','user','ak_4f5e45e2392c1a22','2023-11-13 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$QOSWdIhbaP1AsKeYPi/h9BnyXz3XpQR3vWmv/Sxr8BUGwhJf/.LNj','admin','ak_c4ae35ce029dc59c','2023-04-17 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$nlwAEIgrkJjNlxPlrDyjLkRmG/hmk0bcyMEoJq/3wOez/sUFyuZQ5','user','ak_6d576d76da1956ad','2023-07-20 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$9N/8SBZAyrb0FRISDzGTNmPPBjMP1h2w8QRiQ3dLhbS7bzwAJnhq8','user','ak_e877a5e6d77e65fe','2023-04-20 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$bsaH6iCxqq5qQxelEPCtvjflGY81/Qs/YAYuZ2gzKESd84XA5UTQw','user','ak_feaafdd840badd6d','2023-08-23 10:04:00',NULL);

