-- Host: db-master-9.internal    Database: webapp_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=3491;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$Z7QDLUA9JU.Rv2CMbxF45inIDPQiDYq6iViJDPXeIt27tGqWpR.mb','user','ak_b20910641e55b0a4','2023-04-07 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$QvwXyi7HUxZnmr8e9dFasTvL2cvSr81zkCTzRF.cCG3Ifmw5TLQq1','user','ak_0e262bdbd1238624','2023-01-01 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$55XSji/a/c9IzRVsK0Yd92febPHoT.puh3o1dJzVzS21Yqn.aYwMC','user','ak_a4d5d1db395635b9','2023-07-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$cIws1PE9ei8wI25LsFbu4tiVtJ.PktKM1nTTqWt17bd5QSYxdSCim','admin','ak_08145909b10e71a4','2023-08-08 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$XigvIFcabz2I1/CYWIUygcaCZgHRfNhYzazOSG2XfJsux93lUVmns','admin','ak_fa5da7cf7233a98a','2023-05-17 10:14:00',NULL);

