-- Host: db-master-2.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$dCygXVqEXkOGiuHmpfeQgkdoyP9sUaf/UmZzkAaqqcMyRFmNGgxwI','user','ak_a4b269f349a1c8e3','2023-03-12 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$yIpSI79UW2FEFDMwPd/6CJKYMoKOoWGe3woWsMoy3x0M6qVOVB.D.','user','ak_8c6eac7158c96312','2023-06-04 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$zZNBMNNnVGqj7rN2rGkfb6VFGZfoisGPtv.6EaBLfPLfluQzeAhbt','user','ak_2e693f2798b4a8e6','2023-04-06 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$VyxxpRZMUpMb2lyNUd8L.4BaXfinX77rPsEG7.UJagOdXmtRy16DG','user','ak_cdd99a0e2cbce607','2023-11-15 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$BJhpi0RscZH1HQ92mTcETAE7ZdECk7qJxMdq7mlVB0Ll/7dab2HcH','admin','ak_0c714e2eedcbe833','2023-01-01 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$AA.O5OEYwmNniZValpEZ3U2IYyWrzmsBOLTzg3/caCd7..D2yjZE8','user','ak_ddf5f853a35a8c3e','2023-06-06 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$qNrmNjT3elOUuywXlToGl4UU6VU3FlXTk3IZ0v87eJfqLRa4CoCMB','user','ak_91c41ba093ee3a1b','2023-10-01 10:12:00',NULL);

