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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$gc8FW6uJl3iPNRdB8wiytbBGlStSeK4Xi1xo8zDlPw2cUnWufdPet','admin','ak_9bf32091d51e5f4a','2023-08-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$nF51oSiPXru1/.UvjX78Rl3M9CmmdoEldGPEUaiwiOEADcHOwmakG','admin','ak_7a310af5207d6d26','2023-04-09 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$0hIKEkqCQyvCsUr8t7RymclFoLxYIzMnZOJi4tTwX6RK78Uov8sxG','user','ak_eafbc88f4e63bebd','2023-12-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$ET5lGFeCylNkPHPZ9J5uI5prPiXLHlMHc6HvQnXl2.z/ugLeSXxYv','user','ak_4951f94f82da6fcf','2023-10-26 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$KsZy6MkoOQMvjqfHUllgkKmUJr2l4IAUz7E8IwUsLPWYYURTzHGeL','user','ak_582ae56a767d8993','2023-11-03 10:23: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=10148;

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


