-- Host: db-master-4.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=31967;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$NpNskwGnjTPGoeAnZOpeP.JkbS1rjw4f6amwIvNUQst4IlXF5VCXW','user','ak_896f6e654f8574d6','2023-09-27 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$XmYmhSYMPBYOoC5BuqmVUrn4qhDQbn9pKOJKjyAgUqaAPvDD.B5uW','admin','ak_d99c38ecb4eba5ec','2023-07-27 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$iSIJVyg4aoEBn.37DwslUlnc6XSj838uOWEkD3/6189HQBhnP97d6','admin','ak_5f0dd35d6f9d3b78','2023-02-03 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$aOO/g5fpPkfWGCPFJdXA.cBzW3naZpOUyjWw/HB8WhdZQDeDq.n53','user','ak_ee280ca1946ac488','2023-06-04 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$dPutUzV9dYuiMayC.nY/ZvRZuWNobvgYBTwHK.4BdIBbB0CxNfvmQ','admin','ak_b86d1ea51e29d8d2','2023-01-10 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$NeD5KIYdNONVVr.Q7wcNO2VX58N4N.4IB3UBtULLd9AYYbrLLPf8L','user','ak_e1850797825785a8','2023-03-23 10:02:00',NULL);

