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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$Dn7kBiOQJK2fx2AFhCDEpUrMIvs0sSkYZ839diuIzuI4c6FdhyyQk','user','ak_04585e78adadd64d','2023-05-06 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$vU4m3ZZeB2LZJTbvz7fgpfrsSlLW4BMlRsnEEUyTnrzUTC07kdjkT','admin','ak_4348688c24d6b782','2023-02-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$yO3OJjMqNt1KZ.vIRM.bOtZLv3z8vKCiIvJwGmmqfguqwigpkBQqb','admin','ak_f3527ee020585b3d','2023-07-03 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$dNFW3tyzPCgq7cPPABff2E.DFk2GLPBEx8Ckb.fe5xhiQxZvdSrH5','user','ak_ce43fecf3e6601a6','2023-08-09 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$uRqo0GFJCeMizN4euKG37TBSxnNkQfOB0XKxvk/Iq10If4g.G23m4','admin','ak_b9a314e0d0571cab','2023-05-06 10:05: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=22298;

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


