-- Host: db-master-9.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=8693;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$Py0XZ.LN053JP.aHuxX/jFPf.riQ17RtSz8xlJzdnOU8ACUEsB6a2','user','ak_d58efcea04538d1e','2023-01-12 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$dl1xzCLodSXM3JovzDYXk6dwNCWV3kSF2dYbAB/SkaS3PfY9hnW56','user','ak_abe68e74d77eb69e','2023-10-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$3XjEwE.ZOeGl.ur2S2IJrdV9lnoF/i9FGIkgcNKYWK0iQX34KQzxB','admin','ak_1fb198b96c8f9ae3','2023-11-01 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Py6CSuSxQNRMpwXvlGM.s8YYG5w13pzb3TttjJ2fhacC206kdOev4','admin','ak_d1b5317ec3331f80','2023-03-03 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$kRYxE1uOEgZ5bsWI2WZ1SgytnI81ZJitGMXIDONAj3HapoOtIJ4yk','user','ak_fd1fef74d9a15d23','2023-03-23 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$PNbT1WShlpQ/nadC0JpIdZ0oaAf0Rm0zjebytbIcY/yks1y3d4dLb','user','ak_cab773f6ad7536cd','2023-10-12 10:10:00',NULL);

