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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$DcuDlZtPSsX5vLns/.QqjzelcBNqDmTMAO/8hQgUL6loemEZgE5Re','user','ak_3eb2d0043c2d2321','2023-09-27 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$TjM6oBEzQ4zTAi3wta6eoHtaU3kJUG6ylfXP02YoILHBxVO6k8p8p','admin','ak_971f4387bfa60c48','2023-01-23 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$F6vsX3PjVV5wxjMBYMl62jUFAKCt19KQajupgVcRMbwU4UDB4R10w','admin','ak_575a53385e751a55','2023-10-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$gTKKC24kxLRQ6u0.79f7TSAwS3WCSlxUSkI0zruXrhn7swfXOyEG2','user','ak_889c056fac952545','2023-05-08 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$dXhPRpGYTvG6r1oQXTlriuoiYfTgwB.inOGN3nRPcgVVKdHtfS60Q','admin','ak_7f9244ddccf86d02','2023-05-28 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$e3b2XKpEIgcoZmqS6cViYq0MKpAW9EjHOKoja0XCkC.3ujgn80naO','admin','ak_69b68af4f5b889a1','2023-08-01 10:20:00',NULL);

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

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


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

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


