-- Host: db-master-6.internal    Database: main_app


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

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$PALesvxHnTWHT.2cwnIQy.OrGqMrfNnxwwogci43hpkvCHbSQzgtE','user','ak_a9a7961605b0bf04','2023-07-27 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$02.H0DKDbj5cokA/YfFPJd.uhPuANZRPtIxMBqJNnG3JW51NhPpKO','admin','ak_8b60e350b082ffcb','2023-12-03 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$WpuBn7Wjj4UaQqqZLPIpN/oZhyDhlPM/19O1VP.ICBwRhwolmQjkR','user','ak_8360402007da4aba','2023-10-13 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$QdAhRBlLl80NTSFO6lDaMApghhgeiQigkh/.cH9gbTPFAARXYseYv','user','ak_cdf1f3c6602b77eb','2023-11-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$e/ocVlUrTHIvFt82nme3mfMddmSwzqqFe0eVMYfZ.7XaF2QEvOuWK','user','ak_6eb0f7116ad452ef','2023-09-25 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$lLad3lraU2gYXrk36W2ymBz.oQ.ahVTCqiCNyU2IOQlZRHjkT.Qlk','user','ak_130c2f500b294744','2023-11-11 10:22:00',NULL);

