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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$ZLYsGooMtqK10FJickVmNEkLoHow0YXU2KF2VZS4p8yyqRaOBfV99','user','ak_d88542a5e229161c','2023-05-09 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$gdlGltsZWstJF3hJWoVEKqlOs3hnWTV3C1LD.IiG9lbMQWPEo6A5J','admin','ak_c6a3045062ef2627','2023-09-03 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$mPVQmAViUY5ETc5FZ0YNajUjPuG6Y1ZN9G6FKo13ZnL5S1pKBJ.WM','user','ak_d8123a0e67bb5c86','2023-02-07 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$W2EpyS/tY5hpcOR1eNCBahXdB0.EGGa5W2Laed7qxS5bWNH9OGA0/','user','ak_8412a6d7f61318f6','2023-07-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$wz6B52FYoZf0yn0xLswWwdUevcDca4OUPZk4MSwBvSVyezztxiO.r','user','ak_fd81daf44feb7b49','2023-07-12 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$Qn617duG53Yo0bORto45dmGH4bHTrtJ00nMYpgO9zl2fT/8cGdr7n','user','ak_e3705f537fbf9f8b','2023-09-17 10:11:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=48575;

--
-- Dumping data for table `products`
--


