-- Host: db-master-1.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=4689;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$gDEXYuJd.rcHIm4eEZobi3javTGG6yXCm0Tg/SqW2QKjAyECArZJa','admin','ak_aee570c59e6500f4','2023-09-08 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$o6liMzlvOwT3VkQVZAgAKXutg8VJFXZfPu52SUcKvfoWOLIiLKElg','user','ak_234554d5284550a8','2023-12-23 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$xvlANGOon2JLV1/WFt5AvNszN2lUwBcnWm47AU/hyHLHAt4S6C28j','user','ak_76e4b3063788fd5d','2023-02-16 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$kW56Ga3RI4vOjd1jvvPGnGIO5H2kybVH0haT.goQjek7R8HtPgvcg','user','ak_5d56a6540c6efb72','2023-09-26 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$63I/xaU2CyXd8Wf9jn06ack3nwjYXnHozWximpi7TvUyhEZ5A7ehQ','user','ak_5e09855fd7eef91f','2023-03-24 10:05: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=5034;

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


