-- Host: db-master-6.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=4892;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$hfS9NGgDZ0dYXoxx2ElpxuICBe8g9pIw4ZeK2QKbmU0pyQjGeSwqk','user','ak_08a7ce1ba33dd40d','2023-03-18 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$R.nmWDZmmihWJNIWiA0YP0hL1drzVWpR4u0JdVKsLoCJrExWNeCLY','admin','ak_bc1edc4a2feef77a','2023-08-20 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$Yz.WJUDEmNmgTFzQIDylFYSyl5I4I3VbJzKHw8aXLWGjYfkNKPwuy','user','ak_b506a44fe04d23cd','2023-05-07 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$KbmIDAZ6RNGByTBZfstH7Y1k/7XM5pGJDajKPHpli34GVXlP14TTJ','user','ak_b6bb32b4dc573264','2023-09-03 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$QRZavcEShRV6DSqlSUo1nizGKyz3RfzEBQscXSB2OOsYTn6XOumkp','admin','ak_17e394402e335a9a','2023-02-16 10:22:00',NULL);

