-- 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=19138;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$CZEyAfIr6AWIKAQSmJnIxZ61EvYRGQ5Ca9Hsi2WhsqhZHkPcbCpKK','admin','ak_5a1c1eccc97c2cce','2023-11-21 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$O04F7WhQE5yMvBXYEosCrv1aFYHqqXNWGvJ0VlqDZgHS6/3aaPTrP','admin','ak_5813b0d769f61faf','2023-07-15 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$KfdTPFIYv//n0hnQJlHiphoRU2bH8yhcvxuPwRq04m1pJ/qaNQ95Q','user','ak_51055a484a76b28d','2023-06-10 10:06: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=38730;

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


