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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$LHzBY5.s2sia88p2tFFccpPq1tvLPSeiXnAt6xY5DuDQyyFPGh4f5','user','ak_b990a7b9618321bb','2023-06-01 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$soO0uiUJ680PwRcOR4XuYFkPzS72eK54q3Ahicnw3wIayAeY641WD','user','ak_cd6d8237384439d3','2023-08-01 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$PeRw86Ewf.Qjb.YmkerI3.8SVHxziK1g5a5hY4nzXJaBXyUT.AQs7','user','ak_3fc351c52d1de95b','2023-01-14 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$K43KzRxcx0KvrTR2ud5q1PlcycdtPZzKF3zcqnrWEneESr0bh4Ups','user','ak_fac3c14681e3739a','2023-02-12 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$hxDl0MYrhyN4AiIfm/jv.KqQGiaqHx5vuzmPmuJbQ9sFyKRJzGA.A','user','ak_3b421ea152f90a16','2023-01-19 10:03:00',NULL);

