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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$7iX3yOqgxaOwOyvYwqrQYBAItAAo/9NRprlRkT8HXStXbfxeOT0PD','user','ak_930b0fa1ceeca7da','2023-03-03 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$p7p6dQrR37L8relrpKJUK7SLKmIyV3RRoY4ls4v3b94DgVk2xKwfW','admin','ak_3019e778224f801b','2023-01-17 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$/DpvLtpe4aAbcizsRxhHqwQiylRtptRIs9U4wGaYy/zM11LegEF2t','user','ak_eba6a2936c7f84a9','2023-09-21 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$k5TvaXD1S2LUjnnfsOQSw/4ddueFkH3dvUFnTnay5Z5uapGVAYDrp','user','ak_003e4ab40d422de5','2023-04-11 10:12:00',NULL);

