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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$3f1cn8NTidFmx/N9TszzKkWzNs3LZLsfIjwJxg6Z1finklO0.kuvJ','user','ak_43abcff56d32ffeb','2023-10-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$GI/qPfCi9EtWtkx/AjK5NEeS3brMlVYFSypKetBrshp4t.J3pBUQK','user','ak_c2cbad3d41ccc99d','2023-03-02 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$3c.ae0nXd2f1amkVOODycwUCkAUJD/bWoBNqN4EWNsr9lbSCK2XPq','admin','ak_f471368478cd4362','2023-01-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$XqRUc8Ft/ddFCUVUj5NGID9EpBtfhpZfpsSS5zSoW8Nsoc26y6SlM','user','ak_9c725d35f8b7f1db','2023-01-20 10:08: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=12518;

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


