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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$IUPeUN2F24F8.wwDCw/pmb7OYSDYEZY5.Cq9jQ5WfOZI.2y9F62bP','admin','ak_131758a9192419d8','2023-12-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Bclm2nhxdhKaMN3isrkkcnY7c/Z9D4fdcpNk8uyBWkjRwYHhi.Oqu','user','ak_141c23758e56d6f6','2023-12-16 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$bIP4wWjv4kc2TYt1aOJDBqudy2OsWBoGidKClR1E65PHYs0kgrxlg','admin','ak_8ad84bef3ad839c8','2023-05-25 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$jm1mbjLckFxTU9RXorkcJ.24cSoTdg/oOl8l/cwa5NDk5MlwXusZZ','user','ak_ccf1eaacaf51ace8','2023-09-06 10:00:00',NULL);

