-- Host: db-master-1.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=37439;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$Ozc50bC4YWhzUPj82qeezUrKrhn9CCRugloFsFUbLmaeh0Jgpp3RI','user','ak_9a6e90b3aa417c5e','2023-10-03 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$K/X9/23kccFpG3QJpfwR5sHPw5g/TFSci/o2FP7mnc4uVu9gQhpg2','user','ak_0e644bd0dbe23612','2023-12-01 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$QYRXHu.ClT3deNq5.9iRTmu44e4l6yVcfj4dUGUpuiqwafOhTciWy','admin','ak_69c0f1b4ee9740a8','2023-07-20 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$mbKcyzHX8mZdbLVWfR4lJPGVed5dGXA2ffLRg0PLs19LcBPHregaS','admin','ak_9b2dd15b4a1c9cc7','2023-03-21 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$svyjkssm.E.ZQdE.Gh5EkymhDlm1VGhIMU6bSIkf0r/7DzGBXzVeH','user','ak_6e7b45ce805c99e2','2023-11-12 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$p/.T9OpF.5lUec2/pax/2IZPxNBwZA1ccUYbGqOdmd9EtDt/wJGCy','user','ak_e365df9792ae76ca','2023-03-05 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'admin@corp.net','$2b$12$6b1QUP.8/4p08Jk17O2kSI9Scrw/KJPbRLebURJ5n3xzhJJCd8WL8','user','ak_dd461c5324dd44a6','2023-12-04 10:05: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=20287;

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


