-- Host: db-master-1.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=8757;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$0IxnO0ZFaOcdvBFgLozZTXjifkesq6DNEySom786Z/Hh4Gq5waJUa','admin','ak_b7c9bfaa6191a24f','2023-01-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$8dQVPThFfobRgUnQQpCM1FHiTQdH9It6S5NNAJ/2dHUvT3j/68/vN','admin','ak_ac4ba4b8cc0ec51a','2023-07-26 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$WCBjxYdV9Qpqi4kbqzq3PUL832HMbUiHAlQQzsVStQqX3Qxfpa7cB','user','ak_73ed8fe649d903a1','2023-01-25 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$5eD7hvxw5Fp14NqPK3.j3IZ/iY76mBRIUHPC5zQKdXtY4baMvZ7Vd','user','ak_b26d3985e4244dfe','2023-08-21 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$PuUzhmg8chrvU8IH8ogu/y23c/zqdWaQ70fUnMSW6f2iKiJnCY0h4','admin','ak_3813168ec49ad2f5','2023-09-07 10:23:00',NULL);

