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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$zn1nfPbT8Pc.kJW5flwO.AfQmJHJoxO9aAQCOGTa0LmeT56IBvlrY','admin','ak_be6241624c35a7fb','2023-07-05 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$WgdfqmgZeEPJssw1MNI6kZwwEJBL8txDIgyhZk.bKUqORkwo4plmu','admin','ak_362deba8ffb6a81e','2023-09-08 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$xOq1JqfMkY/n6MwWbxOITDuV2aRU6jHmKwq/qOLgt31k9l9ZeVbOW','user','ak_39e45b4845cf3857','2023-08-21 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$WyYAeOKQSyRtp9g.KVTtOlpjoLV69PQGciZYsVBr0L1nP5x3fQOGL','admin','ak_95e2496de67ad94c','2023-02-12 10:02:00',NULL);

