-- Host: db-master-4.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=11265;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Hwd.TT43QFXpW7j4d/WAa1BAZL3c7QzjS6yUYZFrVRmqlCu1D4Rwj','admin','ak_7e27fcbb39d16a57','2023-07-03 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$VJdzf/0m4U/DpB3u1JbCiwJMSCV/y67/MBYX32P3eEALufY4PiSn4','admin','ak_1836121bf25a1eda','2023-07-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$7ARWsAwQv5GEhH4H.U40QXI6LUjjcXF5v.hX4os.QnYqDoKllFARs','user','ak_3c34ea252c305620','2023-06-15 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$uqaj.GeG1H.p2vAdM.MEIKUI8mlDVEuA6xgcvekHmago59gU6myGj','user','ak_0e9aeb51cd1a21c5','2023-02-15 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$nFhJSXExvz96NzG0c2bRTYQwarmVj8wE76XqWnwLBVXinYoLi24VV','user','ak_b3a1e6f0a4af009e','2023-02-28 10:07:00',NULL);

