-- Host: db-master-8.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=15280;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$JjItbFNIonWeAt8hw/UXbJBnYnsefcGFE/GRjrP2oOmb/yziVRN6r','user','ak_724aff3cafeaed9f','2023-07-10 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$cgXndQwOaVvNRbrrgHcANnlmvTfiFyJXsQxvpI44gYt6fa1aEDR1q','user','ak_f836b9470dbef855','2023-09-19 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$j4E1s8Nvm5oBlXTD6TPD3Li327SQHxJ7ykzVjR2MJvqiEixFJmKUu','user','ak_4a2c10378ed0be2a','2023-09-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ohoeNrKeOd2luCS0CVOFhGd5tXYsQFKcYTrA19S8/jdfOc7g7I0Rn','user','ak_b536097c99111f53','2023-04-07 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$W60TsAo9qam6yoIszDCkD.8ViezDAV2yQIMLQsermn3wQLX87ESpJ','user','ak_f64caa4683f664a1','2023-11-09 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$4LenGjDiCSGnpZFFsKNllf77buolCUwACP1jSgD1BSqNnltSMYYs1','user','ak_c719c4965620b56c','2023-10-23 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$EzIhqzAZjpm7T76ePqk6m7iqd2R6qlq2zOrUTxK52RYnb.cR4k7LQ','user','ak_32ec7171e4d6f42c','2023-09-01 10:10:00',NULL);

