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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$6m7GJT4RwZnJjAY5luUyxYkdSm8DuIaVKq8CcIaZvlWcRDd1vGETe','admin','ak_55d2f1d3ab47832d','2023-05-06 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$XSxeRAn95BDLyQnoI7RURxDwUnEYFkfK4mA9f75u32p3uNmC00wpl','user','ak_48861bc2b24d4251','2023-06-22 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$/RIgglf6ggUXkn3FPbf.U42hyZiCoGK399Gu/eWQFi7nbHJP35g8j','user','ak_fba52b56e0da5c65','2023-02-13 10:16: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=42242;

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


