-- Host: db-master-8.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=47949;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$qabHoi3QhdNPyQ7yO0HKWM3vZjmQmYKbSJVU31BI3qPEyApgDWJcc','user','ak_99a9917e8e86abe0','2023-11-11 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$XQOJv0czAGut1CyTaltSdLG5bzExW7rkE280o3VwfavdywhiyFPMJ','user','ak_7bde9648a5b03ce5','2023-06-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$WY1TQ.IvIVOG0Bvr37BgLW8zur8Q7GzrsGbyBHC/t25t5CC1jPZ0R','user','ak_3e27b74e2bcb65b1','2023-01-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$rj5jBtQiGWb8Ek/4edYLjkcM4xJKesu4zjb38wgWetf6z6r9kHMD3','admin','ak_eeb4767086241c05','2023-04-04 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$IEgQCp0rhT/7GdNDsY6gxFmTfYttyWly89Gz2sNm3to34QG./zTOm','user','ak_01e4793da7b77085','2023-08-17 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$JFJQCuhIWIl9j30bh.CfPSsxMPHGHN1NkG3QLbUVljrQmE2g2QqS.','admin','ak_c0514ab06ff20fc6','2023-07-26 10:14: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=46689;

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


