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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$mHwQwi4/nhy.llTqQ/2usIJFJiRm4Qn.HOFFCmG.EoDGGbMzGorCy','admin','ak_d2fa3071d06a531f','2023-07-06 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$xcBcZFbpoUpd.APJYdcJID1jisvCVCxLuZYaLDpxcgqRXXLNIOL84','admin','ak_6a1bb1f39c09dd98','2023-11-02 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$.N/3f9a/ghF2R.WpmOKJUspR9BE57u577Z0qWPg0JyjL65zYHN3Xh','user','ak_7c7edca8d36fe2ac','2023-05-16 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$AnbvpE3By80gG.wiDGR9rUERzCHnGhAuL5CyohNVrOSeYbXu6tTlD','admin','ak_a7d9bd2931d56b49','2023-08-19 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$t3tuqBF0o67vjn30Hhf2lzhEJPwSA4RrXgoAC4svw4oG2T4pNK9w3','user','ak_2bac661bfb308076','2023-07-17 10:21:00',NULL);

