-- Host: db-master-6.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$9aONDiYdY4gHTPJpLjTpq3Tn2bDlzjrVKxkSZUSCe8aauaympjlrl','admin','ak_2fa61050489c5f79','2023-09-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$sd3NR29ElnMZpsGgZEiROzyUEktaEYeYi5ktA9mhoMxeTYg/GGcAm','user','ak_dacd67ab542a920e','2023-03-07 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$wYwCvJw3bWF51MoCC2d7pUxXyZra1NLfIy6XMtUjFxN8FPgbZuwu0','admin','ak_a465f6718444caa8','2023-04-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$4h6AhxVQGUQjE0MyammitplDptS4Qh8UBJZiw4jXkd..Q5BuOZBHS','user','ak_8c76776a0e5d15a0','2023-04-27 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$Cjar77bQKCEYy6MGBAAZiM5YWVPBNeHtFpsNiDlpsnBfgsWISjB1u','user','ak_afd686f825640da7','2023-04-05 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$6gQOGupPKN4mQetBLQrK6kJjFYLB2jI61txgxDVKLvMBA3YEdC2wj','user','ak_e4030a9fb119c650','2023-08-06 10:08:00',NULL);

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

--
-- Dumping data for table `products`
--


