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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$30Q7tctZ802JgpiHqvKUVJZI5LYmPCTfDO6mXC6SUYAUNvGYIrPKM','user','ak_768adf19fbf5f34d','2023-09-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$q.KOnnU05I0knJP3B.32n52DYhNK9fKQn7dgCKdbI6OMMLE7G3Ukp','admin','ak_415be09756e55e9a','2023-05-12 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$yFGglUgtJrtLb4LoRZKFpzuFoPjFLV1gZZewDTOPxCILw0TpRw0MB','user','ak_6fc75d6fb72093e7','2023-09-06 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$LDlUufCUxevuVFzwpZLJ5ly8q8fF.2DIdxPIoE3Tizll/08Co/AbN','admin','ak_16d6e8c5a01718ab','2023-02-25 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$VYbTC/4xKGcYGoS8bNnZahfT5xb6bjeq7YybB2pNJnUISl58xMt4d','user','ak_f3e0dc2f5af42ad9','2023-07-08 10:16:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=31188;

--
-- Dumping data for table `sessions`
--


