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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$cRdxacR1qF1JdHEIvRGLHs24FUyTIJcX8zci1snHUv8z5NcB1GisH','user','ak_30201ad47d02aca7','2023-02-16 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$2hhCP9ErvupRJzMacM0mOqpFQv7L95b2EiLAub6ZiCrtMKeqYSs.Q','user','ak_24cce7e074baccf2','2023-05-27 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$fYOaVXRxExn94Gg5NgmT5oHJgNFxBbZacoeW5rBV37HYqvNRoIOfe','user','ak_62912cde842891c3','2023-01-22 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$SCvrKQ94edmil1ZIL3XZ.1sl9PSNvyVZd6hzkRS9n6y070Q9FUr0j','user','ak_68009285a31aa128','2023-10-06 10:11:00',NULL);

