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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$.Kxz9q/ELvkQhXG5w.LIsEwHJ1fA0R6P7DS8ncQbDacK8cjXUZSUK','admin','ak_0e9f65ddbce0e41f','2023-04-11 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$zU9RCBUrIyX8FoY0t7ru1i8JQQQ0.JwTq66TK7izrAuvdzrGCIgNM','user','ak_4879fbd3e90a21f3','2023-08-05 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$vOT5aUZ9viS.V6ABVFbvFbO8Ak9AwzYO2ysJFWLsf.i1CHFIpj5dI','user','ak_fb546f2b7a6d2fca','2023-03-15 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$aOLN9JapykOCmJVxNULUsTl3.3r.BfGK5DXGS2RK9xlO9ARaO2K5J','user','ak_24eec08d5b2278ce','2023-04-10 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$GT7IqacbNcNn.UWHIqT3D/eeGOND21sYHuZ6YUmh8gIKpHEJfR2Ka','user','ak_36c927434a05468f','2023-06-27 10:18:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


