-- Host: db-master-4.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=5771;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$KJ1PeC/yc3EgC4yhWtpFw3CNwrjSvsTdSIW5ocen.xHS1aX0.UvOd','user','ak_7ddead9cff0a3481','2023-09-23 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$Kzd9shpDVntKKDHG..aFJJ8Gse2gk6DE.STrE3ULRi9JLhbRjsnFe','user','ak_9a5a193395d3c54c','2023-01-13 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$jtN5163zKUoI.j4jnZtz034ViBZGri.r9y1pxi2fknLybNECsUIeQ','user','ak_223e42a53b1c8e78','2023-08-08 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$2pJFUVLE4BdUGDvv.SfhAOv6wFsMhr31mDoNZbis3AArItAkWYYru','user','ak_48663b18a668f3f9','2023-03-23 10:00:00',NULL);

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

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


