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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$MJKk8w5.wWA4a5LNaHsIaSnNh1cJ1B1uZb7S/il3I6x/GTMc3B5LP','admin','ak_7163b3c11ec50712','2023-06-13 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$FKw9l5cX5nxk4Ads0Kys6ECfK7R7qxVmxoPJt9qhmXT3xyEQKZZVj','admin','ak_fb62b0bd2711b56e','2023-04-20 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$1N0pUK9QkPkbD0HZy2sstXqVL1Hq5psWgZ00AsX8QTIxYrwQr..r3','user','ak_b99cb79ff1bb7e7c','2023-04-19 10:14: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=36227;

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


