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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$pGCxb0lMo1gCyBLDd4dTAdlJ5CzbwjDXaV2z39H/GnGMYxZ2mSlQQ','user','ak_f828f94854777f59','2023-08-21 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$SwIhM7UA3WM6RZ8iOkp1eGt5l/.lE00FnSGpgyeL8zcIjBsRlKsRj','admin','ak_737cb4e8731edb25','2023-08-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$oxbVzWqIJyensO/.qSkddLxhTtGDvnf7M.suddjKLb3wIGgDIxxhN','user','ak_8dfed5e072947160','2023-08-16 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$/4fwNA1HD29zsVgRJa9jTXSf8XVW7xw/gXbaABIl0ofwXvLICl0sY','user','ak_6085f4eb4e41cdff','2023-03-06 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$V2aQvQ/ZH/rV2XgQLiv7pZ31SdcWWJXmHV9FywmBgRHwQjOtPMvJ4','user','ak_8e8a4a508f72939a','2023-03-21 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$U/Mt8l5Hzi5.scqcntGJYDWpixZ.xVjjD3M3fQpqwWh2OI.QIPU2c','admin','ak_c619b7d55681603e','2023-09-11 10:06: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=7974;

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

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


