-- Host: db-master-3.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=3758;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$tNwcgqXaddrcnO0HiXTmIG3JrzDi.FkKT0yEj0GpU09klRE3v4E10','user','ak_1977b273a7919330','2023-03-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$h.GIE5rbZ0yJozAC3IOmehcco.lgrerJP.hppYT4VnUi8i1jM/jZc','user','ak_96e8db7b6483fc6b','2023-11-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$WkzLnKVkDgGAzaYZXCAAWA5RWEFRTVaG2VSuKZemOFh5UcTSeWlxT','user','ak_743197f804ded80d','2023-10-03 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$bb2sc415oikOHS3cAQLsj7HWLMb8fqr67rAMlOde86eWGmBNriJfv','user','ak_6edbefe9badd0258','2023-12-04 10:01:00',NULL);

