-- Host: db-master-5.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=28405;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$.Axw6fsbiV1H4RU/VTDbxgi4GEMBzsrNQhBApdibNUv6SGvV3kBwN','user','ak_f6105a7dfecd07e8','2023-10-03 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$ny2XYiw7c4S2bWVJIXUIpKf9fGUOIeiNVVmxgxDfxScYyiHPbPv/W','user','ak_5fe09d3acc0e46bd','2023-10-23 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$ewdmbRSGpOcCACbY4mbjHzBZJWHPahde3NWJj653AG7nA57Kya/N4','user','ak_242079d500bae4fe','2023-03-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$RtD5f7YF9HTBNSfHnbzS8NfbGEgYci5QWAUxrMtemtM2Egv8KUfl2','user','ak_9eba2f1d15213dc6','2023-02-25 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$K0FVbuDlyVDF9qSMOv38PKSsP.2opiVMoAKCI0owXwIeiBD7Vc77D','admin','ak_84a57c4591e768b5','2023-11-04 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$bGxASSdH/kpSasensdzEcKm3685rWDOSahPZD13k0/mgvIuHgjvdQ','user','ak_e3e937608cf18616','2023-10-10 10:06:00',NULL);

