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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=44804;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$npBYVIctIb1sfxWmkDHAezO4Q9KRe.K.WXfpyYt5EMxVLkTGB0Cwo','user','ak_77893aa0d021ef90','2023-10-08 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$fBQ76dMm7BDe2WPvaLEdZQA40fYZmTNEgCehO0C/lPzMvKU.l5R5G','user','ak_57d2b620b0f8484d','2023-07-03 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$2guMIJLRwiOD1MuHvMiGYFWgR/DXe4/uy9juVd5od3ltFhO41R8FA','user','ak_eac12940f61ada49','2023-05-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$kji9AKIKeeeIcLbrbTHgoiDXYrP9vWk3P6ccqP4lRgnn3bfKz0ILN','admin','ak_be7ae0899666fa9a','2023-12-09 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$ugPmwSFqtdrMNzbPvu3w9Qj7yfeVIe.bj7EbRF14yLSn8/YK3QHZo','user','ak_f75e0425e4db4373','2023-07-02 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$iefHpL.tH7T0S1dctxJC//JnylsGZJwdwhI3AnFLNmzesHfaqekSg','user','ak_fd9a6591ba818bef','2023-12-15 10:12: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=10290;

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


