-- Host: db-master-5.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=2818;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$kWfGjaLqWQpY3bjyNyD.V5qChhqauxdm53MufNc8VJAnspq12cy9X','admin','ak_d9072dcb0b3229c7','2023-12-07 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$apQICABQ5PHDClMR3D8mCZqezPR4hOyPNO44qzvTTIlDBsGID./VJ','user','ak_0f1670f7d836fd99','2023-03-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$QhnaAC02iPW.iBjA4cwaQ3la5mFre7rM51fFVA7aiONmdBMG0P0sT','admin','ak_ae927191a0774438','2023-09-04 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$9jKHTNqB4AKN6B7fGqGvhTODY4GDMESXKW30oViNn118Ab.VJ6kvk','user','ak_437fc630aab171ee','2023-06-06 10:13:00',NULL);

