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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$MhgLg8StOvbt6kJbBBnKtPPTWPn/1pHKAe1K5HYtEKn5Uw58dRqIr','user','ak_b1ec5e7952800e68','2023-08-02 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$/xIsXMuls3PG54x1gMm355IfcT4WVS5D77.gyYakvoo/A.VNjpF7O','user','ak_5686895c5957bc93','2023-12-09 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$YDVKXmXSfjtDnZfBORZHbyfjFzccBGP.DPPSdpNnSvlH125.1aBmZ','admin','ak_655c756896360ca1','2023-01-27 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$79GTg3XwTm1vLh8m8SxqPbfecXVWSwQOKOIMFhQ6SE5WNYloSyh9q','user','ak_29d3bebcfe78809f','2023-10-17 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$sWtny0U/nTkCjLqJrMQZets3P8FWudRCSCe8S.mOZsmdVD23Jypoq','admin','ak_0e48e88d5c88cf65','2023-09-17 10:00:00',NULL);

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

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


