-- Host: db-master-1.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=5031;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$cJ0cF6UpVbuEI8LW.uyNWrIMasXtq6MIS4c3op0kpcXrgH8BJ5Fwa','user','ak_3f03b5d0cffe192c','2023-11-26 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$DJtn3tmuW3r.T9lsrxlpaK/KlNIy0XvMmQvbbL7LKfGjSMGmhRXPM','admin','ak_6a5fef85746aba37','2023-02-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$dQ2ifMSIJFYP/JrQmte8OnUqNnxQyfYArbtW8wziZpuPucnBoAXun','user','ak_72a29a9c6598ab62','2023-11-15 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$lLJfHqp1l..LxmCU8W8BlOfuDwIOMYIizA.Im4CO4UshhMCcgdnDR','user','ak_0e35be69446aedbd','2023-01-23 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$WDvTKVhtiWKBxUPZxLUcRW2UOWUcWj/Mr3K.XtnZAAm1cW/CUfoyH','user','ak_7601ff7da2d4383e','2023-10-18 10:03:00',NULL);

