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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$6blGNrbC6hC/h6Qd0we7TTSN/.5NxCB2tDdwXIPZm4Yz7yVrI5BiN','user','ak_2f293946e8ffbed0','2023-06-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$ut.HOnvGicB3qWn5EodH5hoOZ8bzXfXr36QxUIHXfScjcCqpZYsmZ','user','ak_543642ae920849cd','2023-08-11 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$fK9c8EBq9.gOy9Ffv0Ri88esMx3cqqAZYJ/66hPRV0epiG/jhJspU','admin','ak_979b3b647d2ac6e0','2023-10-06 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$HSWomPDzQfwzSQfB9w6yzvq/Mgx/WoRuZW4YBGdAP1lAslzSXxkzD','user','ak_e03cba5e0cb7e612','2023-03-09 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$8izAeJ9DEnKL5y01Zkl5sBknLQYD/SZTG.EM47HWNN.e5VeEJI.GF','admin','ak_6ce40312499d8ea3','2023-08-14 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$Q8Ch/TYhHWcmHIT0y8g.3iE1WZAJ5bQP1yQVA.mRkPS.kewdhnX.L','admin','ak_5c4f267a5abcc432','2023-02-12 10:16: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=48928;

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

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


