-- Host: db-master-2.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=45684;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$iJcZx3bn0GjRWKC90UetJnI/crJxQF5G4nWARMdn0wsYAKf1wwkyK','user','ak_890e8a8ba5255b82','2023-09-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$saGZPnhRVwdrCVK19R2fIFVc9pkUPAKGssVbyOBUxanGNEmhRtOUN','user','ak_ad14bd8a914f609a','2023-03-03 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$L4no1hZIIitzvLen3qhLUZHSnvIlqELc8MtgMRVt5PlNSmNJ42pFe','user','ak_d43065a2d9551fc1','2023-12-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$v8.6Rw72VDrVZFro2FVEyXaE.qZ3gOnJ2i5b3iWy1w4FtIqXyouzn','admin','ak_fac46381d14f0c58','2023-05-05 10:22:00',NULL);

