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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$eGi3Z61amA7fOpLnJSqY19xQEbDjT1eHmz.0poHZ6pr4gRfXHPMcx','admin','ak_c3cee413dc58aaad','2023-10-13 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$yBmXKuaospcF5gQRkPrU9Sd6L5p07sYspjU2XTiw016U7HOk8BhCb','user','ak_453cd26e3d368cec','2023-05-12 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$wLNlVpyTpxeVf6l8YqeMPLbfK4JsWPGxtQWHx8hYuLBbzv6BTT3jR','user','ak_fa390cf5b40c8080','2023-08-27 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$JnMIrMZ7kij3l5JIYZZX0S84Nm4IiIfp4Qz5gHPdYYKF.aUrqTQI9','admin','ak_64e72045037d11af','2023-11-21 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$b8fnEOgl75IQsEUbHqV26D6mDW6XxTC.obAadMsmYcQEvoaenhJBz','user','ak_2db198e32852f1da','2023-11-16 10:03: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=36411;

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


