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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$rrscDY8DBgNyiQDOpYQAMAOtgBjTd5bty11TxY2R7Esr/0gEyLoJK','admin','ak_7bdf0bab1ca559ce','2023-12-26 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Ud0xI.xJ6FzTZbrMGtb.8.0RvE99mMaQPSCFJDfYCvLU2LbrDfV2B','user','ak_109cf89d1125aac8','2023-12-28 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Byljfs38MZjFds8l42IW4GpQIaezCP7tGKbCsTrGZ26wbfWZcCmax','admin','ak_68b7a01f4cb10a08','2023-12-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$0V54qVLeYjgZq3gWfa39ADEWorsDQlyfvBz9tsYATb4AK7C1fGxBu','user','ak_dc8d0e011c15edd3','2023-08-08 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$sBoFc8x8zaMGXG6l/eE9.ZVFJPBnEpqLiFpu8maeUSKDaZvg0yln8','admin','ak_1d5aaf6ef08a218a','2023-07-26 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$0WG3IKdWf4paJ9nGcy1BNFEahJ4YbZBGJohZm/yfL/KGntjjpMGkd','admin','ak_833327448dcae0c8','2023-10-06 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@company.com','$2b$12$h5Ln8cSoMJeP1G6Jj/C3232bGMMi9nHHeyg8UItbYgUpV4c7jbQ15','admin','ak_2fc9f238171911e4','2023-11-21 10:12:00',NULL);

