-- Host: db-master-9.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=14055;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$Q9EGR9gOyO4w1QF9aifNTfSBxOMvPH0J/Q9WOz0VkPDLlo0sJqKtv','admin','ak_fd3ddc3e475adb48','2023-04-13 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$8vehFg6zWVmxNzYc/gyfRxv72N2qkQinpdQZhwgYNSLod5/JObr4w','user','ak_9d0065e5121f52f5','2023-09-20 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$z.1aVGj4yEtT3kd7Dlh6FSC6XIE/IaL8rScnXRXMOB2YB/hDPW3CJ','user','ak_f030fff5c094be76','2023-05-26 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$4QGzPmeRLyZT.OQ2rVefJ7l2qH4uhaRFh7jjX63PrGg2TxgAI9E/K','user','ak_b06a4e8baf232f66','2023-05-09 10:18: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=14742;

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


