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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$ptQ90QLNHaaaZCLKMcL8m6YgGp5kB/rNMgP.a6WVjznlLvn/A.mPH','admin','ak_592c236777d9b94d','2023-02-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$eza2yJCWwQ18eSQ.fHWT9oXjTYr7W8S.KNa9h6YS/Q6hsF0njYgMb','user','ak_b62265667e812b14','2023-12-03 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$28yeTyUQz34TCd.IPUrRobCdeem3c5zN2ve1RczwrH8wv9tsqsikc','user','ak_0a4473060323cb32','2023-04-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$gV4KJfpCpDJLwMrldYkUE94GqG60MypdfmWBVUUXpbDT7X.Q/ifyu','user','ak_7d8fe995c630b350','2023-05-12 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$6MWu6dPINqx44XixIyKq975N8P0W/qX2EDkBK/VisH86rZXKQ5.Yk','admin','ak_914f1fafb2d9b96c','2023-03-20 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$FWUBfF8.GpiJThqBem18qZp/AakRvnW5fLxFxeHYkgsk4sxZ2J9Ep','user','ak_687a00ef76e32eba','2023-03-11 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$o8z58tHn5WXmZTpKSkofdtm7QSW48OaNU2y56M7bFQASyo81aaF37','admin','ak_ed95a0ecb33b0e84','2023-05-25 10:07:00',NULL);

