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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$inOLBiJD0ta5DlXo2qpVNyBMABCBvSwQdZKMUcmHGKPajF0AWyIAK','user','ak_09406d62e2e53e1c','2023-08-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$wflE2t9cothMvqWAHIYufG/oinK3IpjuAA3jDDtpnxqQd7tzwE2xM','user','ak_ea18aba6c65119d5','2023-03-02 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$dEkPlzpKjdyV2hbH.i.cixag77yvymGloN0Qs8VmfV3WSIfAjUp8l','admin','ak_d8255e712149b85c','2023-07-22 10:19: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=24027;

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


