-- Host: db-master-5.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=22630;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$bOYqRtCZ39r6X2BTakrBGc.7K2kkBe8GxCvUszTIJodBCk9MQGZCK','user','ak_d00d3372e0bda4f1','2023-04-12 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$NxFg8wQ8kFseAwmxaLElqslCIPmlyxrjodNPD.Cjl20r81E.aIFjV','user','ak_f772369049f6fbcc','2023-03-23 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$K/0lLs0jPu.05tKqcwRH5wwDVAHJAZxcYivymV2oJzopOizOjgBGJ','admin','ak_3d39f58ff2400fc2','2023-09-25 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$b.IKM4u7BmQ5V37BosGsagRHgltVLabIgthphDOXVRRCQAQYB2WgQ','user','ak_5424dba88821ccc6','2023-02-16 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$xWsfw1uOv1DgGcF2vy6jAsFi/2fVzoVDeVywnyspH1P6QBfuWbG7Q','admin','ak_da0fbb94a551f981','2023-04-16 10:09: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=28746;

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


