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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$lClBUmMGuOPf6UOqusk5vNyQgfkQiTCfBybRAT0N7qUPGwtOLU.0N','user','ak_2d7f85bd28393213','2023-01-02 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$hPKR79fleqfjuMspwklrrYLR/p8nFerJ5MSPbHBuhIj63tAC4N957','user','ak_ecad737a7fb17089','2023-09-15 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$6omQLIb0bMCrhI8M1.Mfy2TNmgovFahfQHW4ePDXODtD.z/s9Y/n7','user','ak_b3e060c9bfd4d03d','2023-03-15 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$Y1SLJBQUOUBjKU9RIla3hzTlLH7LZPDmAZ0Nd.pnvRO.PDw7gRNXC','admin','ak_23ed5205960e8437','2023-04-11 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$SsQshuDjxFLhxMQu7Amhfiy/3YtbO3QES9FmCbcuTIif1PsH6Mznk','admin','ak_2ba72c5e0da28af6','2023-12-09 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$zEjA0Akup.cHIOkSj4hUlya.KzRYvemju6IPwA.glg1hv7cecKvgE','user','ak_ec98d967fcb0a03c','2023-11-03 10:00: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=46069;

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


