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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$PgWUM51kMRCYqs7nA9UspugNrbjWuxdq1yji9j63BxysKc9eXQ5.b','user','ak_4120398ead932e8c','2023-04-19 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$VoBTtFpyKYJGHSEjKeipQd43fM2q9rHqh7akWHQMBIhzaM9FN7pZ4','admin','ak_f6ec452650ce75d3','2023-01-25 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$R9AzxOyBobp1sP5aM44m/HTwdu7RE5BDwNcMMnNgRHC7lKccWvTTU','admin','ak_ac1a95829f503e9f','2023-05-21 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$aYSrbjhb.D486eVj77PtokDfXlObVkFedrXWTsChvvjnSBaRDOO0l','user','ak_50d4e028e164cc35','2023-11-26 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$JTEc/MvldrZNOavqlZxntxJ2vYl9JSJBAVFUvhdVF9z3xiNEzohXX','admin','ak_a0135109832ca1c4','2023-12-25 10:01: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=47452;

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


