-- Host: db-master-3.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=31770;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$qW0w5DJjljHqryYj8/w9oWyxvrRRgOpppEJCd3FCdGK47B3BVfQK2','user','ak_f0c509cb60758f8f','2023-07-14 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$3yZsbF9y9f3Cw67f/GM/KW7a30dC2hRl10qB4GZ3..nREDzQ/WpAT','admin','ak_f864228ab75956aa','2023-01-13 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$xS4N1BjsRhEMQasS9OGhRe0iLftQMiCaZa4A.eokMP.eyGBC2jPi8','user','ak_b934406964cc2b2c','2023-01-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$WwzZtTPTJB7Z0YZILuCAIocmZB6nA5B1nTTpzYtnNMFEwWT53oij8','admin','ak_bdaded2ccf890ad9','2023-12-18 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$neIf2GlmHDdZoAx2n5hCW9Bnj1Is1W6naoluNtROyFLkTME4LpQAn','user','ak_60c675441519515b','2023-08-16 10:14:00',NULL);

