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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$GeF5S4FrBlgKZQ42ytXAf.CAEtH9hqAzdYoMjdzbYGZ3H30OG5fU4','user','ak_f80e2a11cd1ba643','2023-12-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$G9NOPi2Gh6iw/AiHc8EG44zJ8cLjoX3v.ZNtT09OGWwRX5HBYrBZc','user','ak_baa339ba454d6f0a','2023-07-01 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$RFVJYv4d/5363bFIGe3b/iIhiHoMzlB5r1EHzEKHDMfZuMkjUGp1e','admin','ak_d236dd86247c2b98','2023-01-16 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$n65ZOh7SpetdIos4CsgpO6.22OuADicPTtk5u4vnK1m.nf5.Hr1iE','user','ak_89c490119e089379','2023-10-04 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$cXiSa0EOawOCXcujwWKzpTbQI3C7CTRRDDIN68b8ZbGzWbtyXtDHx','user','ak_199d20495e25fa8a','2023-02-27 10:17:00',NULL);

