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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$2SBbXVW1NAlSGtiZ6PeN6TviagX8txGcNTRk15r/LBNQ7616dGhsQ','user','ak_063b827c8f886bc5','2023-05-05 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$k3JINFNtZqD62rBCCEPDmnYeFqhtAHD26JcT82gzVX0Na.WOhKEvd','admin','ak_ee867efd0d120dce','2023-02-18 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$5wg090D5GGVgAjcxzG9wBo2RPJUkX5dObJ111PtodPHLS5xHVQsx2','admin','ak_20004b68e5c72529','2023-08-21 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$PQ.RJkeU4jzHUrf52kh7joq519oTA7xKNup6ZfxsWiqpLRtmM6e8g','admin','ak_fd9b23680deb85e5','2023-05-09 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$5SWIZr7OLg6wql8FgVSQDviIgsCEx4wkg4LMXg31olJHOh3NuQFHf','user','ak_f76fc8f72e6fccf7','2023-05-17 10:00: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=30592;

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


