-- Host: db-master-0.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=43961;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$7s8PfOFErQZxmJitilQCHCPPVGjZXKxwfTvPnGzlbASgFHGCmiXLu','user','ak_9f6720d95899c638','2023-08-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$7.M1.8DTLgUPuaxfq4pT5yPLILkuInGGvS6gj/OFFRrA219p5SXuq','user','ak_ef71157c271d7298','2023-12-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$HVN1Uk3GT7lLXHKt2O.KSV8qqokNhFk9xljyBRV/ADdyW2FBdUDqs','admin','ak_5eac1aec7019f618','2023-09-15 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$zvysqwckhknSjbubdzZrlIEy99BiOv7TIBdyxufakVlU.KDpCaMWC','admin','ak_03d431a14b3e8839','2023-04-04 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$8ktagLcT/Ae933YPzDRWyBNDSAIYtABt7utnZtOGKz59FxpJKU/mi','user','ak_bc1e5a663fae0f07','2023-11-24 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$iSE2xwEV3sF4vrfdL.Iy3jjk9VeHVhnEm.KGyLl/UfUBT/tN5PBDI','admin','ak_4f3d8cc4ce2608e6','2023-11-22 10:00: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=42749;

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


