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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$ppus0qfr4T1ZMxCmna1aP0DgocEaX5WPf.QGH8i2y1keBO3jhXcA8','admin','ak_0667b1c0aff7af41','2023-05-28 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$2nSA3ImWV5hwFBJS/141vxaY9xAE/36Nyn1ZS9kWHen36z4K3rDF3','user','ak_d4532f12896d87b9','2023-10-12 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$hf5rdcRJSRdz.hoqgwAth7cUSQWUXdVPzSIjOj8JMVarGKJx2kiVd','admin','ak_51cf39d2466c36a3','2023-03-10 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$iGJBkHUw1KQSiFAPgpZQOwCT5zAI4AFfUF0dF0EarYQ3ljGE94kST','user','ak_5adf874ecb9bf249','2023-09-17 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$58zSGkWN8IvrCej5P8ZEe7vKOxm4XDhFVk4iHoBhyaXW.46jB4WNk','user','ak_a8e3b5e9c565844c','2023-10-14 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$Bbpllk88L1jboZxVcOqHrBnCY0VDPxWuKeMG.d/jaduBlgc0FzEoo','user','ak_5b31d1d381e328ae','2023-04-10 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$2wDbjMmqi39bFf5i5AWdHysw4gxGFHCpVguDSPDpgWt37Pyx4oX4s','admin','ak_ef382866f99f75c2','2023-10-23 10:05:00',NULL);

