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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$WQQ5vZuILjB87I45lpGyzYJkCZUKBFN0GYzctu8/sBJDL71LSalIa','admin','ak_ac641cc14670ca8e','2023-02-22 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$vquzpsbqU6pq9yFZXDSfTTKLxul7b2gjfpSAiEeIPntmvMM0fHXv3','user','ak_f7e6dbf152ecdcdd','2023-03-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$QJO73wM8uEUvm75ASptxalfe.9Gm9ou83A/DRWzhBVD2li4WfMYge','user','ak_1a4432d99f751b9b','2023-09-16 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$pse01Con7zj.9eTMdpRomGkwTcMMU.OiT7UQlBDGqVpslowCQBDme','user','ak_7c377d31516fb912','2023-09-12 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$efNxplcUgjqqfQyaL4/iXZ8f.5F7GoJHxc4yEVTnxC.tUuWkTGPs7','user','ak_0bfb283633fb1a06','2023-11-07 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$1YlmZmtkjgf9fdV8N9gt0jUT8L/zO5cHA8k3N/OLiMJvdDoXWxJU.','user','ak_e8d0c161f869b8fe','2023-05-25 10:16: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=3919;

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


