-- Host: db-master-3.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=38566;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$.eu6xeGSZH/eOtzQvZ0vlU0nTmIn8F5X2ooyF/e3ZLjcN0Bou9dyV','admin','ak_54664aba7c8abb8b','2023-12-20 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$yAld7lDU0kqi4.r0MuClZFq3KgXT4WZCIVKJr6AzP2HUp9nzBekb.','user','ak_419ec78dc6c7e2f6','2023-05-07 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$diV3T717kSFp.MRsOBypS.Dyt2r4rDec8k8aCsXAju54iOEVTVeki','user','ak_03675098baf894d9','2023-12-11 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$tHGzO4kgRR8MSE6.UPU5fyHaTmdoPHLDFu9iyfr2k20ZNekW4vMhD','user','ak_a7a5a7f6053f1734','2023-07-02 10:01: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=42870;

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


