-- Host: db-master-2.internal    Database: webapp_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=37958;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$3mdOZS2egAO5lo3TfcVMmq1Iip.0MZ8OWINoR8bs6QMsMCpxr6kIG','admin','ak_9afbaa6c8b84234b','2023-11-09 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$M0jCa/6WXho1I/7KuseAoRrr0n1t1rwfNuh49rTQwNZnSaoh.Yh2S','admin','ak_7d829e15e6f7eaa2','2023-01-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$Gle8EAkbZL1xWNElLv7/2HWuGK6ygQZWro3oKoKpPcImdVvdoSQNk','admin','ak_989dc499cb015bb4','2023-08-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$XPiDQmosNRAtjAxcHKNr4tuZeg0VpnDxvYee53Uxd09KT8gtqjq6V','user','ak_021ac8130dc4932a','2023-03-27 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$KUyvVB0DjWdnfjjtMnNqV3PrzEyj2v5amjLKdl.EK8LFnPMRj7w1R','user','ak_20e5ea6d52325e4a','2023-03-16 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$j3gjbvMjqXXMnM/gUh3RqlXZMAEZwBBrviP5dcNjMGafy/r5Wyk5C','admin','ak_05e3fe3633746fef','2023-01-23 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$xtWWDROr3i5Hyiewm5gpgM4.yrkVsiB5S0rgk87OJkdCb9LRsQCwv','admin','ak_c212605a7bac0499','2023-04-26 10:03:00',NULL);

