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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$i.g4fUHnlgY0yuNjolFVBraZlLd5vRGSdLn9W/T5xrTPiEZ6fVeGr','user','ak_649a7176e7d2ff39','2023-05-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$iFPqf5bVDgCq6WXfMmi966UY.36kTJXPq5kpHs3q1hnodbVkj1APT','user','ak_ebb3ea72abb514fe','2023-02-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$zxwDIequzp3sDHhJsfS7WNM3g0UKF4u4AdXN.fLXQXLCwsVR5X/rk','user','ak_701694740c7732d1','2023-10-14 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$k32ovaCIsnVc/5MX6XYGYD.Azgf/WbVYkTGCfazy7QOtZx46Pel2.','admin','ak_7fdf90422d20061d','2023-11-18 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$HOvqVLbVvUrYflJX0GbfV5B0QQ/tdq2i7kJMfAs/Md5BZMAYPoawv','user','ak_74e35da5ea6efca7','2023-07-24 10:11: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=13011;

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


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

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


