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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$jL1mjLyTJajtAb1Ww96dLVabVwlW2vR4zn6QO0Xg3xRTBH4lfCefn','user','ak_a86cc392bdf501b5','2023-06-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$DGRQtGkSgyAxyrvVLMF.GLhRT8ufcE614PHUjWUwTK6U7DR0C7HpZ','user','ak_d3c7b3add9407890','2023-08-14 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$8WwQ1xLK5FzaWaZ.s5UyqSlmQhiR1R9sjeFLKf7MWcdaH.QD4dmkC','user','ak_68c5cff36c058651','2023-04-11 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$mtjC5GDvHi.GKF4D6fXkgppNYkjJ7VejaVXsNB/pQTSBHMvHm0CwL','user','ak_7c8930be75a9e690','2023-05-26 10:05: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=31310;

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


