-- Host: db-master-0.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=12383;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$fLZH6xm6RUppuqO1GsiQ/P7a7uNAdRAItkeG5fJLhX17gTf/sJSU6','user','ak_352240a25480d5c0','2023-01-26 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$ZoyWgSW2QA0djTlTBDy6c.zB53d4v5zSueow7mkWICZStNS1bfW1X','admin','ak_9f6c7e036dbb3670','2023-09-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$cHTUOb24or4ZQ0s/SABS4JFQ9vcKIs3YAitSwLK8Th5Zx23GIobtV','user','ak_11b521caa002cdc3','2023-04-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$8pVsmhaz2aQrnwKLIV270hfgi1uXnXT2JqzNChHUxFt4bEY82lLDO','admin','ak_32a97838d35d244c','2023-06-16 10:17: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=7480;

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


