-- Host: db-master-1.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=20927;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$35bjAPvmxJ0WAxaRQgKt2jTcsuNnwgbe44oSn6PSosmu6HrzR5hBN','user','ak_20662e5d04790a3f','2023-11-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$v.xSTyDS7CEWmmeAewd3h/s47kI7NCw4kManOT9YDiHzCBkqA.0/V','user','ak_6fe1f6f88d735881','2023-03-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$aokfpT.Z7aH/ba4W924Xf1s.wGewMlyojAMRHNY2GVMfYyaEvhN4h','user','ak_17bfba57cd32ff40','2023-10-27 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$28tub7wuSfqkpUu5QDblHwYFGn210O9kLGPKNtt8x6qokJJJJ8m9Z','user','ak_0f4cf0ae5bff529e','2023-05-09 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$KIrQvqE80oNZlVZeex5qS9GFd7XPasx5rjRKjnYLH0wJf.QQuc6t/','user','ak_4ff0b8d577f6bac5','2023-08-13 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$yTV/FsStw/00TYklDTYgXS6qkF6KkN3gVLzunb7nJNzcQwdH3QvwB','admin','ak_6084ecaa7101e71a','2023-07-01 10:02: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=1875;

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


