-- Host: db-master-2.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=14566;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$pfhyT8HR.d5AYsa6NeD5z47UHePMe5pbSmP97BgJkQYr2an5DObbd','user','ak_da5c69569f8b8139','2023-07-09 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$fCEdo6egdoZxjNStXyoN/UMZ1GPXDgECAntQOb3Y821XKi/LUtQDp','user','ak_2d67c78a0e478254','2023-01-23 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$QlwlFX.nu9VQzQcxfJbaXfZxft7I/ZXGI0PmExSph3YTVrHxWP2lk','user','ak_8cc02efaa418c044','2023-10-02 10:12: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=7906;

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


