-- Host: db-master-1.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=28155;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$WPZXAd8ZTTepB6Kml8RCVQK3/gprkCIkEKHSVyGwcRb.m6VBLDu3n','user','ak_f7d4a716917c3657','2023-07-03 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$i/LTsMc1OZnNJMkYC5Xz9ZdaUUcPrBvx3CCgZXE8V8EC8YsnFUpYs','user','ak_08da490239d60562','2023-06-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$BK8QP6loAUWBQ2DXi/2GvDI4ftu4DvAy.vjGrjMK4PJFHvdIFT.hT','admin','ak_3d2389c4824e89a9','2023-04-13 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$2OGP44tkBHsqBITFo7n3YR.jIECXFkDCgsTSyNxkIQLwNnbN.Qw7P','user','ak_881e4e729e8c7ef2','2023-02-20 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$AEMrJyEYLfgBv2ZjnBgN96PmcTskzXPvABqm7s96UdAbrfyx2ocYG','user','ak_ef50308f4c66c983','2023-05-18 10:17:00',NULL);

