-- Host: db-master-0.internal    Database: main_app


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

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$TuqZ793mijCyTUakg4oTCIiDD3XLTpaOaChugVGZeRTXplkGdBZrO','user','ak_f1b5b216f5eb4a97','2023-06-14 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$L9aw65F6PfvBdgAWCmKFtFQ5ud4YxkvsNlGHAuTzB43mZjVkRYXds','user','ak_60ae7581758dbe3f','2023-06-16 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$HAh69duLMJVJ1v1O8TZun4lkLSeb4cUjh1N4fwpwCt/V1DJRykLn5','user','ak_6ac72debf3863b09','2023-12-02 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$.fzFLkGrU6rA1H9J66QyC.9zB4/62ansufvLlXWjkrMqvckyQRCL1','user','ak_3aa3ae922f19bbd7','2023-08-22 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$IdNQ.YOW6CRiQlPcEoy6dn2KqiBEkeeDVy1.Njulu.XkgnxOD1HX6','admin','ak_b344f9f1fa5ff5bf','2023-02-09 10:15:00',NULL);

