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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$MR1B4hgDDcUqnweHtcKaEM2vSixpI2X06uTZ3PCzRlvouUvWXBPjv','admin','ak_b71741a5a8d37b65','2023-01-17 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$boTTUBy0ad1escFMOJNbM1cdnfCQQ42llUBhDRQSHr5hDdcNftQb6','admin','ak_7a6976908a6216b9','2023-09-02 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$ox67ya9apAHPVuKLzZPblp1.lsSlmTew3GueI/p/fYnwv73hrmI2K','user','ak_7fa874dc60dbcf9b','2023-09-10 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$yGBf9Ey13mipQZnlL.yxGzYgIt46B6oIaaRziyy30pb9Wba79FyNW','user','ak_75705cc4298699ca','2023-05-05 10:05:00',NULL);

