-- Host: db-master-2.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=24780;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$QqObPzNEwFZ/zMf6kzMJn1U1w82JzjTtkOkFyq3j6Ni9tUbmHtzR6','admin','ak_792636392ddad32f','2023-05-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$fq0NRfE/xxgQ6qSLPLT8NuJc8F8S9ed7s6MZI.rnwKzS75bPM.WXt','admin','ak_0e22a2f05d2e0fb3','2023-04-19 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$C8quUAc..77MXSpqmRGA5YTXvnKqaTu8IiIluIs4cpREiQtEPl9Si','user','ak_2b7b05e11a096597','2023-08-20 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$bJMsOnLFtDl.igxlsQz0z8WvqZYIvScvapf./qPfMy0h7gsnDzHHr','user','ak_1e6320749d559672','2023-04-19 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$hcpaNWxjuW4V8cagSNAEb1JodzmvXlhF8mdF2mtTyNd1SyK6Q9W2D','user','ak_84015db4deea66e6','2023-08-08 10:09: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=15703;

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


