-- Host: db-master-9.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=17262;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$.oStzfbIsjhtueLKbpPnugm/Sfrt9l152vvZgPAO2PFE78yY/peTp','admin','ak_dd614677882725e7','2023-02-15 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$H6g8Dm5RNxQvRlRNVXT3hrF6oDv7VIO.85F5/QURo0JHzJG3kxV9i','user','ak_d3d08bc57d9af459','2023-08-11 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Jf6C85liNl.7D8nNpblUN6DXapGy9ce1tM5VbP.DzCaY2wlYlzXoj','user','ak_7b82d8d6d55053ef','2023-02-14 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$J7xHepQLZ1n7gmmNf/7vNp.Py7UaJzEFNqDawmAD1QdcYq/UmPMSj','admin','ak_eb0280e95cccd130','2023-08-23 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$ma8ndNGPwmtmBc4xSReZSCwUiVQMYaUz/bePsxwRVz67hDX3zWCLl','user','ak_9ada421c711b9365','2023-07-19 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$RHG4wHNwb61EF3RN38H.3w3OA3RtNNECW/vb1hhPaQ8484QQ7jW5a','admin','ak_da438fa9f9ee004f','2023-06-04 10:23: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=18539;

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


