-- Host: db-master-6.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$x.oUm3GuWwsRi0QLZ/k4Zx6M/zafuBK/vfTJVfXfDExTiGQXB1R72','admin','ak_f74783973366ccdf','2023-10-02 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$SFqnkP9ejqiQf6yBPiOtSttrIvnHdJF4v8FASHcLVBF/mPLcF.zJ6','admin','ak_0cb43c71b943e34f','2023-05-21 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$Dq2k24ngUQi0tU8Ed48aUqNk/fJjkytHh.nNWLKvR4fa.bHu.T1Pz','user','ak_fd118ac40634097f','2023-01-20 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$eq/xxWbEgiL7vqEqU7EoLAP4myvwaSkbW0r3Edkcfz7iBmFU/gw/W','admin','ak_1d6da538534dd44e','2023-07-03 10:21:00',NULL);

