-- Host: db-master-5.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=24077;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$7AD3KF3nekha1tIXivUzHGnlQ6e9bjFxmxTGwnolOGTcP2dMjidgw','user','ak_ae9c64f100479b7d','2023-03-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$l4i84HV9qkPHGr0SXcDJZJ8Sbsf3K9gvgmOYbpUDblGLNRDKt92Cx','user','ak_ccb89547ea0bdea1','2023-10-05 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$hXMN7C6NL4U.FTGEEKB3Sv1hp4qEASzzlEbZWLKEHhP4MiBkYimXV','admin','ak_623aa607d1a795f0','2023-08-14 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$t8eNf9JjAdTNxJCSlC7klSelz4wtUH3c/zhD0eYiN4WgMIfSIrXQy','admin','ak_e7e6536179257fde','2023-10-08 10:00: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=24773;

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


