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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$tetbLNz82QjQ/amyyhBOs4.Ti6T7topVQt9h.R3J7iJYkGf76S0Fo','user','ak_7f8cf1cfe38c604e','2023-07-10 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$QMTBLMVDLQc8OXGeC4PEwwAmNqmGIdpOtdFGQlFvloSzDHyoGt3hc','user','ak_9d9af04b7c34d466','2023-11-19 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$AOyMxZR6W7IjoPb9.Y1m6MzBsKe9JUEpLloI6RTAzvHHAT/sWtFkp','user','ak_afa90f7b5f06ae0c','2023-11-08 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$EFWPn3uOCbkUcXkJ.BqWU6VQyDq3YMOfr.2T/YIsL.CD7FMJUTZfG','admin','ak_f9166ed00a65f073','2023-02-23 10:22:00',NULL);

