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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$OppJmPH6TRiokm5kM.0EX4K32xE7ENbkp295tplGR2BPwnm5XHJ8p','admin','ak_f4e40f7559e1d1d7','2023-07-10 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$YQPJCs7yFzkCbGnZa3VEhzFCxZgjWBIkIFkBdf..AtwODIRTZ1ot7','user','ak_818794f71aa6c4e5','2023-06-19 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$IwDfxoFcYGT8JXWwVVigNjtXIJpacW7SzslYWTOhYSvm2H1XCIbiT','user','ak_9000bce0bc78c1b2','2023-06-09 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$7haJQK8F.wmv6GlHIT9VQp6XQpxeOroieVA6mmsNJN9WLZsD7ko7k','admin','ak_df414a5c36f6e59c','2023-02-28 10:02: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=13051;

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


