-- Host: db-master-2.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$hW.uRSCUkgUbI4MrtrlA02W2.ndwe0Rv/QOqrZmu6YGwdCMb11Lb7','user','ak_5cc8346991124eb8','2023-06-28 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$H.dJqNRPnKW2VzfG4FnXoHWoOBnLrRxH7r6fYRHub0ecx3185CFAf','user','ak_447b798934631d4a','2023-01-13 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$y9ljJXKXkMkgPbPGr7DuPgWcJClf5ngoNyX5iJdZUvNglP/oQ0ycY','admin','ak_7070b5973714773c','2023-04-04 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$jPLPIW7rs6sCIQ/HBNnkPkucuPO3/z.UXS1xZoHdTi6FK/1mVEP7M','user','ak_c8603a967e674cff','2023-09-15 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$GwOrFbN9923zGVk2eT1wuwTIR2eem3fGcIDsKNCvRA1fa71yX3zTe','admin','ak_a84d5137bb9fedca','2023-10-28 10:02:00',NULL);

