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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$sZSThkJk.BWlANeY.HbGQsaAp3KUP.z.Lw8CpI0bVNNNdgktyYYEp','user','ak_85b218bfd6b46a4c','2023-12-22 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$9sLXy5Cl1NZdOIp8LMpQbHfG0e0EEkZt1H4wQqBOO2VsXfG1k7o2G','user','ak_b3f8cb9747cfcaaa','2023-05-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$v6jgVb4qGaujp9bFhbuukLIFed9WGuJgh0cYn0W.zpoKd6d5.fDUt','user','ak_78079a4fafb6eb99','2023-04-26 10:18:00',NULL);

