-- Host: db-master-0.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=7808;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$8LkPmIG5G27D4cH.3J1LNdNLMytvtQk.iHcQ7Xo2x1YGcL/rmqQHp','user','ak_5d8c405fbad72040','2023-02-15 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$ulKvuffLiPxBeUvJLj1I7CIGMPT0Ou2x.5kZSUgtlULVpUBJ56tj.','user','ak_7d6ac65336ded888','2023-09-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$LC53fqZU1zidVBnnOnM/sHSi1QH0vuX7ajxsH.13z8sP46Iuy6uuJ','admin','ak_278ca4b8007a77d8','2023-04-13 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$Tu6ZA9FkIOQR.wHwf2jO.1RzAQbjqO6F3x8ONDryahtwtP93ubl74','user','ak_4844b7078042f4d1','2023-10-23 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$VipnStYa6X38XCpGFgtN46xLF51fkO6eX6W2XkPoLdE8OxbITL5lS','admin','ak_848038f64817420c','2023-08-15 10:15:00',NULL);

