-- Host: db-master-3.internal    Database: webapp_db


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$VwCuvXX8wWQJSPk9cJGnN2.XxSvZV9cCztJaQ2ikuG/Ms4jIzf0QD','user','ak_072e15b0e84c539f','2023-02-23 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$riVTJNSXgS2Md0Lpieyn95Q6UYd7icueHiLjC09nBEXG638TzPu7p','user','ak_6701041174f071bc','2023-07-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$JBE/3i1eYCLvjXmclRHCySaps2ke2ypIxQ/KJm8hmnzyV2fRxK6eQ','user','ak_1488554b69ffcfa9','2023-09-07 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$2mf2S1pCaHiu3N6OaQLKw6PmTGci9ZfCXoOwUDdSFpdZLbxoqZRbB','user','ak_6fb45fae311292ab','2023-12-06 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$ksXgAOu7JM2XRy/4yxcvSfPu9e45uo6COL.0Yb6eGZ/JxNAsQbV6Q','user','ak_db8a4bcd97db937d','2023-07-02 10:20:00',NULL);

