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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$Jq.gXl3fLynzSmKcrSEE/1RscGMFCYBL9M7j1ilFW0.z6BVsycz5w','admin','ak_7ceea7b51d5c7102','2023-11-08 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$EWSl4HX7xQLWrdCKBDGYulqDt7XM6EEGhyzzCHkK0L9yTZVNlTnrF','user','ak_974888d2160593f3','2023-05-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$R.92SAvJzSZVbojya5vEfL3OrLI8ZyvDs.6UA9iHK91NjQfeZ3wOs','user','ak_361415240d378e4f','2023-04-21 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$j7TVox1jCiSuzWevSAQm4m.l17lDG1.9cODk/sSO0kdn47anj777h','user','ak_bd18fb407eb0e2d6','2023-06-01 10:09:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=19143;

--
-- Dumping data for table `products`
--


