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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$i0WYJQL.Z2X/c0H4sg9Co5/ktmJijR9uHpK0hwMHtKPxOLGY/4Zgt','admin','ak_21d693e5bca32315','2023-04-08 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$reStskagKtcUGuohbBHYp8Dm28G1oACbbnIskrSBzuCy8E2BIRPBz','user','ak_c6bd195d7a9b3383','2023-09-17 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$wOTG2Sem3hCkMQoy5Bs8x3bPfDQBgurvvudwlBuLSGFCWmJcJlUC1','user','ak_eef0ccc8cfb12739','2023-06-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$DYRqPqB7oKiYJWTGQIr5zSJbXkGgH7Mi/9b2QLHa8lAoRIbNt6IxK','user','ak_4559175504118903','2023-08-12 10:16:00',NULL);

