-- Host: db-master-5.internal    Database: production_db


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

--
-- Dumping data for table `products`
--


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=40587;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$uhTkmh0UjLhYA370ITltIdqLhQEaXanqtaJEpHF7pWyQt5Qu7Mkoo','admin','ak_b70c7d32aa5ad8e8','2023-07-07 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$pxiRpUqOzYtVmwq/k6veHOdfCO07pyN1T6XqsD9j6ieS7DLXAdBrD','admin','ak_fe4a134a255fd9f9','2023-09-23 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$dlmGn20vVL7GdSTcnlgVf.IdoLqJFTb5NbWlbqCUewNmlsoKBA0jk','admin','ak_9e5de5e38d4ac3f8','2023-05-13 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$LVVGNbfIIWT2/NVx17ZxVWOVCjz1bksoE6aTgmeiBA6QI.1EwtnR.','user','ak_8679669a81bea6de','2023-10-18 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$qL/o2xS4TOhDEc9ngNe7vk7vKKlTdjKX.gEm6kniOKfz5FP2Mxp50','user','ak_979f511facd7468d','2023-04-10 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$pg7u7Vh9K8fWjlVkncF7aios4.qXguZbnSz/XNQ4cLo/FzwkccSBk','user','ak_4456c6a2856281d9','2023-08-21 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$SttYOoyEDTWq2/joN8i3poz1uXW/11KfnUxS28EkRYTaplyxQcxUN','user','ak_3f48356a4466a328','2023-03-14 10:02:00',NULL);

