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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$sbiJGEmhGhvmla/g7K6YOJm.ad5u3K1c1thhXeoB.NA7LACD30A2v','user','ak_349a2ba60aff80bd','2023-12-06 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$2U/X5gj1kkTBSTccR4oqT6KUhiidZWJBVzsTUPl/1Q2nW3X48Xdoj','user','ak_dadb7e658b6518e3','2023-02-26 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$sMtSofLkm5z9eOWtbUZixtJYr0wbarU5BsdR.M0UiBzrokXMHqULT','admin','ak_42ea50fc69fa77a6','2023-03-19 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$/sXj3QgrrvTaHWWuLGYB39L1S5c6nWu7HZNFiVU.VVHD1gL7Oo75Z','admin','ak_85aecc9debb6f4f8','2023-05-03 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$JzXZNH4bRiAQOoS1a9968ZyFsHOxNPEs4NvxZSUwhy8JJ.ptTdI0Y','user','ak_f471af0d63fe093f','2023-08-28 10:23:00',NULL);

