-- Host: db-master-9.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$be0tc2dwNHbWHQF5U7OztSHjJUFyAbqnBmUMFHmXOuMKNYsnTGjF5','user','ak_c81f234b87281fdf','2023-10-18 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Ws1u2NTxAXbrwRaKS9CMWW2jUUZeWa7k4yiR3QjT8UiFz8lXJy.tJ','user','ak_83d578f2018c4038','2023-05-01 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$z.owPrqTr8F6JoeWljSeGngOQLH0EKrlsTt3Gq0sK0e8ZtX4KGUPS','user','ak_196d2590a7fc16cf','2023-05-26 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$PzcSe6KHWZmJF8JngUIIXpPQWQ8Z4DWFILrlWIUQrcaQq1cAs59oN','user','ak_e0d98a831c9147cd','2023-09-08 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$iw/Ef71.UGMU21LriqB0SLEQAhdKqJKiTUQzhgLqemoHhVEsPbXwj','admin','ak_0a7f0f1e3e4b7d77','2023-05-07 10:08:00',NULL);

