-- Host: db-master-4.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=9236;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$NX2Frc7kGNN4Uxn2n9GQR3Dwx6AcMAsCVY57x4PmF0UXIJ20feH0e','user','ak_86e4088701edefd6','2023-07-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$AkDOOlW49oPbSV9EhvlztKhZoOsF/CMWEp9xtYwEZSuUzr/B/YPes','user','ak_5eb30047bce24b51','2023-05-15 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$d0xxUrynnfyrW6cBJfQnwhfpFBuWpSawxSLXQSmn5JPU5DIJNcL6h','user','ak_9e1db92c87fc25c9','2023-07-10 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$36B1hH2j1rhYTSQoHUcRGNeNWB4MOVg2euril5xCXqleM4B8vSVzA','admin','ak_64c335a1e4301894','2023-09-05 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$5z4/OhvTE2Nfvw834HHX1UJixOAlk1XO5ZbvXLmZqNUIZglVDEgyk','admin','ak_67ad6af7f154a0f7','2023-02-17 10:13: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=17289;

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


