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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$dKneqT/NRltS5lYYQVKZIhhrruR9s.r82bpJGcFIAte2opkHjYP/f','user','ak_1a5c671bf9d48777','2023-12-17 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$z0GWY8J6bfoDVxaUIaZKdls3gST7LGl2ZIlNRlA.oc6BPiDwOtzrW','user','ak_4c70b7e1383dadf6','2023-10-08 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$p2TOEyJeH3tQDRZPYfTaf5oRAa0fP1IJF3o/uZFGhI7i2gzE0ce4d','admin','ak_5ec0312d8b9f31f8','2023-10-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$BMmb1c1nvfRkXRQws1zJbEhRh7aQdNhuwk1aQ6lrOUFVm5mZY0/P2','user','ak_8f53894a0bda5974','2023-11-02 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$a5ORhYIIwHZjTEmZhrd.etWhe89UBiIr9Ng/4R77vplXFlFxRGjtj','user','ak_519bf30f17f5adc6','2023-12-13 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$o7Pn.zwAzVqOUHM87aK3o8fbJfVviAjX/3jCCVOYUjOFnUZph8NSd','user','ak_9dc21b838c7a3e6b','2023-03-25 10:04:00',NULL);

