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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$YXgqYCb15TIHJFUSVKEyO6E10yTo9ShfAqsu076OkHeV1GsghEWj0','admin','ak_da61393bbd5feab6','2023-05-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Sd0tQisuxUQZFxx39/20nNbYnxm46/UyOZu6G5h5p6B4iG4fTGsiJ','user','ak_957e6bce789b4f43','2023-12-28 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$HU8jWOVY.pDsA2aBnixmIydM5zCsPhVwhUmYMe7Ffy8ipF/5kQirD','user','ak_18de80ff50fba02f','2023-09-09 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ZnOOlitJb7diHs/EStXBlNj86n2/GFG59XBU1YGrGj2Ct46olj2Uh','user','ak_6b6932f7dfdf9f4a','2023-03-10 10:10:00',NULL);

