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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$yEQdcwitEjP87WnMeTjaRxPUYQIF.bnsA03226ELY27xoidLfzNV.','admin','ak_ffb138b7c3a15324','2023-07-14 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$qWzYIjOAB9OqEppJUhW6I3QBNBam7Xo7wMyMVCX.Ynxsy8o/UnD8v','admin','ak_47cba45bd737c8ac','2023-02-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$Dsc/415DlLyIoa.yNZ5FqsRpRi0zEyyW9OF7armsLO9jLW/l2I4bU','admin','ak_6dfeffd8c00eab44','2023-01-27 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$5E2GdmnLbekId7ZdLfNsbMKVMzuI/p8TKgB0iRoT55AZomT8j6a3N','admin','ak_d04ba31e5cd7e1e9','2023-10-04 10:22: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=42421;

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


