-- Host: db-master-8.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=1198;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$/hafymW/Xs8mVyrwTSdno3mHZqXxI.uEenf42fUnvwVqAf3p.8qnc','user','ak_84322e44809b6c9b','2023-05-22 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$nsQAk0FpfGitEhY5goLhuXb7T948aZ01MgQpAB42V/V4fo187xpEO','user','ak_cc666c6deb13d9cb','2023-12-05 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$sYTVQrQNEfrs9kFFAVG.g3uHl5i/u5G9E0d76K1klpNv7JOjI4Z2s','user','ak_400dabee36c7e5e7','2023-02-07 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$QN471WFhqQwXprL5nCK/4BGeLsMJVsfOKxxPdaM1GijoqYeUemuK/','user','ak_c171c57c2a822789','2023-12-15 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$64vRhtGOCcS7YFZ5E6sInsjdXBf9cMK5zebigX6uqjz.zIYUpAtTj','user','ak_0b77baeff90d15e8','2023-04-26 10:08: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=10991;

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


