-- Host: db-master-5.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=28630;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$mKi8kyPqrNW.9zYNPAMDEi8vjuLOvxOO9av4gKHWOFPP6asOHMEaE','user','ak_f8df928002c8aaa8','2023-02-26 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$BYEMCQdLC5ZnfkAxpYOFyBNNbINi2IJSMCPhoHdnNCyVKWR/nQaYx','admin','ak_9a05c9dd05e501e6','2023-03-05 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$bGJVCpSwWnu.Oq.KgshDt80NfI9MY160WDs/IqPqLgUReajSA21FT','user','ak_f2edf072558f7b28','2023-11-14 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$mqwyDnlgskhKP9ZHRbIPVCXYGW5lp6sb9mpd7njeixTAGqbcDZ2n1','admin','ak_c9da8b0153041f87','2023-03-09 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$hvvcHMPv84mIX75KR/.92JH7KIfuc4j3QumaUQzYBlXO30o7rsjJI','admin','ak_50392e09ccfd443c','2023-06-01 10:03:00',NULL);

