-- Host: db-master-5.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=38730;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$y3En7HEP49JBuOEvae9aaIPjLiQzWjWbszdBpNOuGEFKKITHb77pt','admin','ak_1d3a917012818e23','2023-08-27 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$KcapRFbAPgN3ywij8TWVfXELXpPsfJdeLiuqvf6FTYTgOdZvRTwXQ','user','ak_1984c1e2f8889ef4','2023-02-13 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$YCr0CdZHnOvjYHzN3PSHCxUjOIcy9ryDxoDkUzUQgfDfkQZCsdytX','admin','ak_9aee267c7c2a1601','2023-07-25 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$SESzj/BYOIIYIzZO3eRjLv7cn.6.7AhET/VhWS.rn/Eraz1H96HS5','user','ak_b85fe68f02d0ac14','2023-12-20 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$XTHAc6on5FmO1Y6XFNXJHeSnjX9qAFpcbnJXByL.KvrX1xgrxsXWP','admin','ak_3176ff8e916fbbeb','2023-08-02 10:19:00',NULL);

