-- Host: db-master-2.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$pBo9o2vDn31ylcIbqeMOlGpkw8OJB32m6.bLCINlmwuh9uaGsmhzv','user','ak_1284c58adc669c07','2023-06-20 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$WT.y/aXmi7LUvZGWLG/V7KdY6yUFUjqA.lz9RlsKGIpU6uRl.xWkp','user','ak_d9ba9c4665da356a','2023-12-23 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$Us3QZ3I3YiS5IbsNJJXkpL7QjPqgiUA7xKLCPtMnSJabDUTDVloaY','user','ak_1270d0f9a475f235','2023-09-16 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$armGXP2BrW5mIcQhvI4Ib7B86DB3QkawKtcL/632dri6NFH.c1EHW','user','ak_68878f915a5dc931','2023-02-02 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$A1Jc0EOXrd/yryB4KLDiYDAhvS0CEHXHL2V12Wp2tIKQ44uW3FsBo','user','ak_6d43149762f6ba84','2023-04-26 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$xG3RiwccuxBPaM0HN5LPZUhy6PU.6UhMiPWh4KjVx8EmxL2VO5iXW','user','ak_29755dfebd330f61','2023-03-28 10:15:00',NULL);

