-- Host: db-master-9.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$GHp0SV7UVTBxf3XMhKkvxanBBQSL7SaO7yRV7Zfvldooe.mSQOdGB','user','ak_054ca8043f63114a','2023-05-04 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$qJXN/OHIEW8qSWO9VXz6aHVIsbFXkEZuKFbW5mKOkJjlERDJdHc91','user','ak_83fcd31290770ca5','2023-09-20 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$jywBs//8y6VjjIVHKxe09rTjzj7Zc1S2JEUZiDsCwaFKGupKinxm5','user','ak_2bc5bd6ab5947d76','2023-08-28 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$RpN.uLa1nJTmVGLLXcEAwglmKpAQzwlOjmrs9V0dn.AME0G626ma4','admin','ak_14b03a75a6b40d91','2023-12-17 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$lyjPBPD.lRduuUM5yNxrWkugJxMgPBYqj5nfBZCp3/LtStCr4hwa7','admin','ak_ecc198dc6591526a','2023-08-23 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$HPL4bQgvCSNNRJJjWGURMTYus/oNvshUjDDAANsMUTqKxoPIyVwxk','user','ak_29628c3fefdff6b1','2023-02-14 10:14:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


