-- Host: db-master-3.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=12774;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$DZZl8BiQEOcF2jHm/Dnc3dLTTzM0eTwDfJ08tUj3Vm4C4pfYJZbr4','user','ak_1b651f49baf1cdd2','2023-10-25 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$FACrhaQQ9sBgs5WltsZdpgmQTz4x43RzeVnaI0.4vrLu8cbpXcqRY','user','ak_a2f33cfd1d026663','2023-02-03 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$eMbOwlQaxsGkWuk11jRHnepxF.r8IoNt27JEtc3EFVwcKXfFKFTmT','user','ak_32a5fb1d803b98dc','2023-07-05 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$7EIccRVfCuvXRAtGH2PBH8jEFbYthfDmBttr5Dle8wtbGFZwEvNB5','user','ak_7e81ef106a103f4a','2023-01-06 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$nEAsoqaeeOYaJPd7e2HZlRFnORM1LabX8Uld0WWYCLFJKaUN0I0bs','user','ak_07ccff09800a73ae','2023-07-04 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$yNW0LmLcMwZ.F0eOyYRRmJ/999MLm4XSsAaYd3mtky2aHALAS1GVE','user','ak_83a0ccc70d6a3942','2023-10-27 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=16942;

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


