-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$ZEtPOFduVC8whfaPaeQCpJmwmlqX5zCUNVK3.4z1wSIGAmInkZ5IH','user','ak_4c1847cabcf0ba11','2023-08-23 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$HPH7FvSKfkJwbG9n4TQF5vV54nDxg45QXS2X4fVRoVFYwx/NXVT3F','user','ak_ed1ce94350a8beb7','2023-10-17 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$puRfs42JGE/OaP2ghxfsxnyf/0gHWJIEYLbB3FGLu.1/TDIOR6yed','user','ak_490bead49096c553','2023-02-07 10:10:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


