-- Host: db-master-0.internal    Database: ecommerce


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=4606;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$j1Adz/oeThFcfbZk8UpLSIbqxg4cJOmNDkN/18HnHJXOaDE/cB5ME','admin','ak_869491ff0a685e71','2023-03-23 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$iPmXs7uuNzY7IfPfb3Adn3eCBRkw2DoXKJyxoCRxdULOBcgUwqdVm','user','ak_8b59bc7d762b3d0e','2023-08-13 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$2GNnW56oYTYkZcf4CktH1hOL1yFrwM9qYyVS8.ziJHIxC4LpIpLhz','user','ak_4f87094d9d8e1777','2023-08-19 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$P8QSZsauOkuqJlagksHZHItrg5f6Qi3bkOlbh1X4CccMrvpIi1hZE','admin','ak_4cf7bbfe90d1dd2d','2023-11-06 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$Rt4iuuf4stGPNvAirzB4B5HHDuVVqVXzLVT3r.cQi9ZZnuTQWLj3O','user','ak_4b6d9480bcce8c2e','2023-03-18 10:03:00',NULL);

