-- Host: db-master-3.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=40417;

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$luuTS0x1weztnzhYAu2l2TUjDiGkdw2Tkcuz1.BV34AnBHmfiWR4A','user','ak_c067470005bb2c25','2023-04-06 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$STF18xjlGw9Mc5zL.nYeditLlv37C6bTSKh5.vi9JNh3Ivq7l617h','user','ak_d973ff2e5139dc86','2023-03-04 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$POyyQn2N78TbLvyREqJ/qhuEDd7/sh1ZI2PrP/ztv1TSSoPX7Xt4x','user','ak_b2ba690d6439cce4','2023-04-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$ZeFnUN0jKaoSRwDU/TcrOixiAHzBHQ1Oj0LI.2YdGHbQrkkFv1Cil','user','ak_8b06e6b3cd3d8179','2023-11-05 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$g8LSS6Ec5P7gOh4UOowVbluAe4mrFmQys.XlpL4/WVtvJjadumQrj','admin','ak_1867f27629ebb605','2023-11-08 10:14:00',NULL);

