-- Host: db-master-1.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=5361;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$HcE3nntyiout3kQwQB0Ai8wpxyq//MQp3BLE419LZQj0kNsSDkg5K','user','ak_9f0408ae54c2a8db','2023-10-03 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$PxFkqBz6TKk07ESpeL1eR2X.g53DVrEeQlLuiTb2Dj0el/akqgfru','admin','ak_4bb32c9213f22433','2023-04-11 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$r4vnvVu149Qj9yiGoibATXW8sQqI3PU8zBaMjMXd4UOTQrIQjlyD8','user','ak_f386324583dbd5dc','2023-02-26 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$AH.M3Gju3lYPK4zDE35XxigpJdORlujD5By9JXtH2KSymHbKVGa65','user','ak_314d6518ff5480ed','2023-11-08 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$Q2772AewpiWp5EMUTAgsB.KjuaxAolBot0sXa69m8fwE6du8G5uby','user','ak_73036711b6e3a01d','2023-07-09 10:03: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=1917;

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


