-- Host: db-master-2.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=21210;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$ryKS3NKRkOIp85W/.a246p3cERtgVTqtFkbhSzE85CdhCc4A0LFgq','user','ak_e5654b5d175f580a','2023-02-15 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$hcd50k/YZRsahZ7WTSRicOTrxvFGYtl4OZoz43Zu2U2TM8zD1wskm','user','ak_9bf7863b965e8ef8','2023-12-09 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$ruXoNf4RsFfwCXwAskRcix.6XxLq192F.1lT3cXNnTpfwvd1jch6X','admin','ak_e34d3f53957cf689','2023-09-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$mydcnsTyVaYEVQd3T5kRVrKdybiJAl.LHZmXvQk27PoIiuQDU6HFP','user','ak_82ea3aed4779b352','2023-08-26 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$YmRnb10OsZuLq5iXzPly1VTSx4UXq5gaSoWlSjJ5MFMwXs2mfZiRr','user','ak_2d730305bb9187cf','2023-08-20 10:21:00',NULL);

