-- Host: db-master-0.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=36739;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$LEb9ej9vH8imTm0A2.ZI/kg2P4RKiSNzWl6ewVaIsV6KiOmqkscOt','user','ak_52ea96f7172675b0','2023-08-27 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$OCTbmytz09Tsq/vuWmqTCyarvPLLRepGDYTH50gtTYn/qR2lxI6G1','user','ak_c5a8a6068099300b','2023-09-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$gm5WbS5FgRveC3QMP0ex2emKjgMEW2P1CAFK09syJ4a3YMkflKiU7','user','ak_b8b9c79df7c37436','2023-04-17 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$VS.kEopsO6wm2ez49laOPOtyL7jtXx0MVoN0I1TdOjSmKzuyMSfK9','admin','ak_edeb7169ff9d89f6','2023-08-04 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Khfye2SOiaN2CIK3Fj95zVo45rlOHliAKUtom5kBtLhbI85DL2AN7','user','ak_725be45d1cd45bbf','2023-02-14 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$eYT4N7K/zykoNcRZuxa5RbkYZM24WvemTqbIn2vRyxt86EC5JkKlf','user','ak_b63ea10c6cf81426','2023-12-12 10:07:00',NULL);

