-- Host: db-master-8.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$y.s/6GdOiVB8e1rn2IGVsQ3Z6KWC1RU3/7lPEhBxjcBJA3P1rFQLz','user','ak_61a95cd663b88f11','2023-06-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Fzn3y.EiO3oWtWuLMvlWlCgB7PYPBa51TVG1VfZ0CchF8nn1kWKVt','user','ak_c808b0bbe9374a02','2023-09-14 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$VpohiFWYAExaE7C6oKkjumRGmg1Fm.04pvv0Hj61xp/bnXweKPOp4','admin','ak_200fb440c846cdd3','2023-07-20 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$vbS6h0pdOOOuDVDLUc3812Fo4rwMDnm7Ke9fUo/EjEED1UxVEKcWp','user','ak_b33378cfda1c7897','2023-05-26 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$mv9.p4ZpHWBZCICTSEUQI4uA4WiJOhPKMaH.HmLCJQ4aZ/.olaHp5','user','ak_66bce04e4eacdfb5','2023-02-24 10:16:00',NULL);

