-- Host: db-master-7.internal    Database: analytics


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=42878;

--
-- Dumping data for table `products`
--


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$NTPpipYTL43EKiU6.CEKRz3Embw2tzPhyVlGNJGrolHDYhdHFHdf3','admin','ak_81285976a4204b0c','2023-02-27 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$TQQQuea46cGbrDWr5zC58rThfRR2LF/kf9JjG2QOo4GPopIVJGyV8','admin','ak_47bdc8467c0125e7','2023-12-07 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$wKASt71O5FXCTE4hnZ7WAgXa8Hpc3Xddmr.k3.Y4AEOnQZxy0ULHf','admin','ak_61395c3fb5b13168','2023-07-14 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$6n4.YDzcf7ZLfhA5lmmisgoIJ/BLFCslDVDFKksu2PubB8z1jQEeX','admin','ak_d1bf95ff80c504ce','2023-07-24 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$.kPGvo3BFQUYOSA5fRwOJCrfbnSWf3YPirBNywmHYyxCFMka/j5LX','user','ak_ed5994bb44971aa5','2023-06-05 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$xaV6DUaJM6rGAPyX2mzbBXFs1ffggBGPHBa3bgmNoakR67ERwPhvn','user','ak_56f61f67853073d0','2023-02-07 10:10:00',NULL);

