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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$uZBKFvOFEOfZFap/BZXIDkypxHLNrA4zK4owLRprr00lYpRa43/p/','user','ak_f0c70e64fa6b53a4','2023-10-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$w.jgO9V.UWxYna2dUWLWeb6fvf78ot.LHQ.QPDYEswGZ81oO6XB0w','user','ak_dc2155904cf5c076','2023-02-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$cu58M1wLlFMMLoEyzll4CmM75f5hoINxdgYoYeJyM6TVOG7Lyja57','user','ak_e009cb1b76f73491','2023-02-24 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$UWJAuvOYAvwDchmOhEdUvk2QL1TYrIfhpuby1y0sMqiDOljBTtetl','user','ak_a4e204a178a9e14d','2023-11-10 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$mr5xkzkNgj.u4/s9OecFhcR.0krZddwafL1oj7EbulFXo0X999ts8','user','ak_de8c5cd4b874d445','2023-04-20 10:23:00',NULL);

