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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$qEWZWf0cu5vMk9hwm4FQ0UWbTR7r5A2ipJYUW2olwAPp9QmkyXmBy','user','ak_44e2f2f5c99d4b61','2023-11-09 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$RGJ4Vv4HQts.cWbAIQstDcBIZh1WAl.b7IIP1NcgfRQP6CxsrxMAq','user','ak_b324a4aad7fc696a','2023-09-13 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$W77nNGaVhuSmmTNwtPpdsG8cVhpZ/KPQY23ZSebOXa2GnqnpH1QsA','user','ak_a79036994d4a64b1','2023-02-21 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$zg5B4ug/MQYRPEbC5iy.CYXDpiMUNl.CPv7NbK0iVWEEXhKyBD4lU','admin','ak_975cb0a2f668963b','2023-10-23 10:06:00',NULL);

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

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


