-- Host: db-master-6.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=37356;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$kBMOEhOFLsaNk5e8v8/w5JU/j7HH/cpLOpSyHirleAczcw.lOwdg8','user','ak_be7e9133efb16e16','2023-08-11 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Oyd6oXdCvoImyfWEJaR9Gl9Hjjm0EUXOzsI.LjxkGatXIgWjbJg4h','user','ak_0b193ecd0e744f73','2023-01-11 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$vfIH0h11yxJYwnH2eUKiQ8gEtRwgYO2xnkiosmD6r8Iiq3KBjrHmZ','admin','ak_38b4eb81b04e36ec','2023-03-10 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$w1bTg.doI4MU45zVeJYgVDQzgU9eSGY0JwWgWWfG7qgC3EFDdY/23','user','ak_8e941af7195020e5','2023-06-16 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$GwZ6qzhOmQqabjBKARw5sEgFFS5lH8Wc6eEvp/WKKIx9czm5cEh5r','admin','ak_14ea477205370543','2023-09-26 10:00:00',NULL);

