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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$ygaUvo86vxwLn.HIOiZB2VpDgi83FRZqRIHx/uIGdnKt0rKfOd4Ib','user','ak_93d781382acc165f','2023-04-15 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$B93gPxvp1aB1iNElpbHXC18wfo6UGlYVrDmPjeqiU9FwyX7Dz.IwJ','user','ak_f9de15420a93ccc5','2023-02-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$6xivXiMM7Ikdc/cA7Cb3Gko69A9jkl5wkjf.kU0mgQHheBMyUHWBo','admin','ak_9778ebe3bf2fcc9b','2023-11-14 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$fIDhyhfRfEDX4fwn4QWQJufBVaAQ3DIHZjaANUq5816RlxPUDJiPC','user','ak_d8566e8cbf8a2517','2023-06-26 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$//aOIa0MmuxMpNrI6UTOqoJpdDrqW/yoHqJ83k9X3Dt6oo0rEX1f7','user','ak_1db5892edc50f271','2023-07-14 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$yjwqAemHf3FE5ye/3HEqztyuphwlqOGD0SeXyDRRcDNA6gnw/wBO8','admin','ak_558eba37de542c37','2023-06-21 10:21:00',NULL);

