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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$rj4RLwFLVuufj9A.cGUbpWubMBh7T7iC5PJj.oHcGZdUNw3/EKl1l','admin','ak_159b7b87d00d050c','2023-11-22 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$ftVHjrRqCo1EgfZTmo2U0xVUzD3Rh2hMZx7nzqmf79WPHlDbplyV8','user','ak_a4c5071612a49411','2023-09-20 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Nf9IjJaKb143CNqPYEnudCIWphOW.mFzsQ.8Y3ns5rZFheM3OTrAP','admin','ak_1ac3245ef29841f3','2023-06-18 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$t2vWRtNDOZom9vyaNf3HxSeUWpQtLhdqSZQe/x2yJCcJWOtbtR2CG','admin','ak_1d43c24191cbcf59','2023-02-13 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$oUz3O9EiY4y8uqtuLNvxFHn41F8yAs8FPlu7hB1blK1naaxGBKkPl','user','ak_8ba7a875c73528a2','2023-06-16 10:09:00',NULL);

