-- Host: db-master-3.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=10469;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$P.jSgRRqaa0AkYRY/X53pPrHqZBN.oRtdtgrwRUxqB4KizHCiHNZh','admin','ak_0f4ed3587d0b355e','2023-10-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$aziQopO50PC0CKV6tpkNdlG/46exGj8G1PBQvSDLg1dG2R4VV3Oxy','user','ak_2752f0b718ac51f3','2023-10-04 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$esu5YckBIKy71ieIjm8wO7JZ9qDO3I.H4XqjKp6HpO.U7wenGCdcn','user','ak_d765fc6b38d7f31f','2023-08-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$X6CR45/2r..NwRl0FwW4BZ4T2op2KUw5.PJwm5HgimCDWbMRbHZww','user','ak_e6d42c2d6b31a71e','2023-10-24 10:03:00',NULL);

