-- Host: db-master-6.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=23174;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$celmvzhC2Br/MGT/hcen0qKw7gAURERUZWC3D8nzc.m4vfWmbuL9z','user','ak_f3333724c6ef5701','2023-06-12 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$iRNfHajCvLs7qg6URxMt4W8qYhQ1TmlEIbeOx093CpnC0BwAmHjpU','admin','ak_7710a1ac6ac6a640','2023-09-16 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$nLyocdTUf8QIAPTODVKiDLIRRzihleXVnW3G4ASwzKhxba7yUV2s0','user','ak_5851d74e9f43bf22','2023-05-21 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$T.Gqw/4pcixQhhSi.MyldQ3jomdPToNKrhY.Fi9hSsR8SvpDS7fwj','user','ak_ed75be93e582a9cd','2023-11-09 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$q.DE0wcYMEkuzOH2uG4KivXACTiz5h0CsPOqwf9iFs.ZI6lABmeea','admin','ak_2a1f0bafe5df997a','2023-10-08 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$k3CEORc5mBwktkUEtSFD8vVMlJJ2vEpU9Sg/.ZNrcFhpdaj3UcxSQ','admin','ak_a0944f6d471dada7','2023-04-14 10:22:00',NULL);

