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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$QFN.dvS4actRGWScBYS7f/r2nU.gMvLIBIR0QZ6K33/rpD0Z7BGs6','admin','ak_0e925864f1568c9f','2023-09-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$hw5dSiCsbHhugu8eFBMz4RflHtFNKFOZ7LrrQIuXhTUnvC8jXhF5u','user','ak_7bb852dd5d4df6c9','2023-10-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$QfkQqXBwxqqyyC5cBCHzThAe5LlqRpal7hG9OsRk3TEgLq12cxeL7','user','ak_7cbd9c622d775e37','2023-10-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$4JL5Cy/X.tLd1QZa8Adtt/RlI7shheBrzepcFt7N8zuAhEQhNk/TS','admin','ak_7ec4c37a01b9ea88','2023-08-24 10:03: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=45853;

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


