-- Host: db-master-3.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=22623;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$TMvKEmquhiuBCCTDFwzIaUsLrP5oXnZXn5zusPf1WKwRjX8Hw95Xh','user','ak_e9be1fc7dca4d82a','2023-07-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$YdyB4Lh0Sxilqid5nezTSizQfbOyKdTbty1NZq0MpZuAmxTp7Pl4I','user','ak_c1273609b64ee92a','2023-01-26 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$XJYJRRq7BEWbqkBConkr0Aeutw5qwsx/jg0HaPOKpFe0ubZA8VbeB','user','ak_2fe4cd4cbe327c76','2023-06-03 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$2NHqDNc7FIfM7jxHvprgIxnH8ePggo8LuCSyMvBj0IwG2L1SLlhev','admin','ak_6f52f908dc4e9b88','2023-12-17 10:21:00',NULL);

