-- Host: db-master-1.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=13526;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$mmccQkvEWERyMn6Q0f/bpGhr1lRvJSSWO3B9/Aet/BI9AqSEWuT42','user','ak_ba025c70317cdcfc','2023-05-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$gtCrZ0RhwVbQpnHX9qykK5OxRoNEIFhETLm3jFvSMfH1NqCF/rub.','admin','ak_03a22fca0468fe3b','2023-01-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$YbSjAUgsUDoww3sLOYXLtvpnQj4lPVeb2B6oZuJjqill.llIJtBAi','user','ak_9cb69f978d859ac8','2023-07-19 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$zVfj6.RsreH3QexcGZNyM545ReQs9D0yVtProqZYQHkAGMMJPyRVu','user','ak_a5a4e2878da7e742','2023-01-21 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$3gDblqczwwotxxiEdLVm7ngtAAB9ZSFcZ/E5jxXAHWriHVD0BeeC/','user','ak_a0ab2909b3bd3d3b','2023-08-26 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$sdjur2SV/hbJSwXHNnSDNlSVR/2aG6Ksi7JDT8.EJDvR4bZjgwscK','user','ak_76220c073cb6114f','2023-11-20 10:12:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=18341;

--
-- Dumping data for table `sessions`
--


