-- Host: db-master-6.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=37663;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$bZexPnf8vkqkwOovgq4zHQJiA.Qmmd55pM3RI/vHoJM0zNmY5Z2k.','user','ak_649641821ecff5d5','2023-03-06 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$DIGiSfc5r72AAG2AfkKXKxuItFJZAb0c8ozICCkwvwPlbYRuKpkZg','admin','ak_e6762b2c610eeb17','2023-04-13 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$r9.YUyXg9QDHBPR1rXUFt1iei1hNEuLCdsDGsUBOht74IpXixWyq2','user','ak_2081482286cb89f5','2023-11-06 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$3jeKTC3L6MfmZsTZmEADn6ZFHnAsszxCMGGTJFg6woE0vxm.u0lEU','user','ak_282ad97aa168fac6','2023-03-15 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$ULodXdVHKAjXD8akq0Cl1FeA5sPjLUh/ka9w/EDRhwhM.uY0UH5OG','user','ak_5ec33e40e7eb6036','2023-09-09 10:05:00',NULL);

