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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$vDFHQLE7LQJ7T5yM0A7bq0s7SS5lSSfK.k/qS7sY.UHbMKoh0y7Fc','user','ak_508a625978188b12','2023-04-25 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$xIiLohuOB130Ofth9hI7.AUTj0JuzWELw7NnXEcsNJckIjo381uAS','user','ak_597f25e0cb4c7eef','2023-03-23 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$kPztL5ZLsBIPLr8EQCbeq0pNhkF4NlejiIW6dKRTrDD7L3E98MtqU','user','ak_533319d9dbf11d1b','2023-07-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$yF1K5tArTEguVv7.lc2sVe3XMr40y9P.t8QZ1soJdki.6mIkNskHM','user','ak_733661361e2b5270','2023-11-21 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$TagbGPT5CBaQxeUskwAiSIirP5/5hHLjKAnrBtQu01vWf3Ks.L4bP','admin','ak_c9ea14da17564a1c','2023-07-12 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=10151;

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


