-- Host: db-master-5.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=23831;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$1sbiBwHocuxFSdyaDxpZJa4ORZP03tVqL8AWgCxGMj3XUUiay.SRz','user','ak_db6f7df5e70b7c77','2023-09-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$ULjCfdt2C3rlSyXipd8VKEYETiSW4BFcsMdffI140IYxKUgvp1ev9','user','ak_79ae8a091fd038b5','2023-02-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$F3Y.eGL2IasifohOEM2N40zdtE80FaAHR/KmsZWW5lbOiG9fVsEH3','user','ak_0a87e8eedc2deddf','2023-06-09 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$BbbMIco/WTn7T1HsKy0QE8lzk0dewgwrb6vW1oAYPIh.OLPuhQime','admin','ak_ae12df61d74449ec','2023-11-11 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$EjHko8rb5SmgrD47Mbt/.LuUBPt36U.3fqcXw6.8cg4LDDhat68UK','admin','ak_ac9b9c2b652112e3','2023-09-19 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$ywC8m2mAJV0SJQ.BOREHq5Pee.cWX2rWXuYcOPCRI2SiWoSj0Fn7S','admin','ak_84cf93f854180226','2023-12-07 10:04:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=18347;

--
-- Dumping data for table `sessions`
--


