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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$uN1JDU2B.ffBHUuGmhhGAYSuek8ZON1GAGKyb0sdRIJCflgJujxq/','user','ak_682849a5fe977c3b','2023-08-13 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$ta6gKC1vVJFqHNL.NMQ3R7wwrz4cTEk6Em4izJQ4goQUURskl58.e','admin','ak_e9b101a8c9290a6b','2023-03-10 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$17oncOFuLLFJC9IJh6gpFvvELeMY.7YkODLDk9lE45SVOfPDmlFhp','user','ak_6b5c90470e0131b8','2023-05-06 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$IqXEDqgu5z/qzoBv2NhPD.YKxKLMoqLCuFS8SLq41m96/s0BOFfVm','user','ak_7f1dbf8786deeff8','2023-06-23 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$T23c7ObkzZA0gyYo7kSO4Keukx5ouzEsFCWlOvITzID2Slce98hBR','user','ak_0177291e3aae1c35','2023-08-13 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$IkGandwKXxRkfjrgEOm440vi6EYV/u8mFiLDKmzl8NrNM39v4Sbmc','admin','ak_63cdde45408decc9','2023-08-16 10:11:00',NULL);

