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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$wDq/gPziJCYoy2Mga3SymKi9Ur8iKft4Ne1196p0iYYbrzlimlERR','user','ak_6659680539fd1f06','2023-02-26 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$AAN420LY3l/yCHFwg6fZP7ZCy83cJwKioV3v83lZS1tT1PUa0EnpY','user','ak_be602d35d49bd82a','2023-09-21 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$zSr7PhHsvDpT0tnfcgtJSgsYgyZDeDYmI9wCCjPJiGuqm1JXJChqw','user','ak_e4e8ad6bc84f4e61','2023-03-14 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$mFWHyB7rdMqscDXrsaU34.j8xgCmwwE289JQjjOWqqICR3xJJPQJf','user','ak_4303d18f572b803b','2023-08-06 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$MmuO0BjcIkoCXbOdT3AFSxRU2w3abNix8kVXEwythdvhXZ666z8B.','admin','ak_cc27b7ea1b9989ad','2023-08-15 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$hgdFfH8mnlrJAYWfZ3W6M6qDpQJb8hyIUqCxkMj6FKWLvEN7p2YNr','user','ak_1bac9956cc455bd6','2023-03-17 10:13:00',NULL);

