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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$oD8hvyi3nGTnd6bwVakF/dYh40eqQqkdxREwmlb4Kfb4ICnlvPTGC','admin','ak_9b3edeb78dc22700','2023-10-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$TKwPTuqbR40MPLu3uq3weF8LWsSeN0rkEjiVt/VGlK8PbrjYpGvQ0','user','ak_3d607ec3bd65ddc7','2023-03-24 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$HIRinCJm88EkgtDzXQafdb3NZ3tMv/6YihynBuxITHjeYHchkpRpq','admin','ak_90216cb84b7e507b','2023-10-20 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$6NxYdz7byyk5TJo9ARJnIzlLg6HUeqCnLUeN/gIKNoSbHegUJloJo','user','ak_b7ac2ca85da1a169','2023-03-13 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$kavNCf6o7lqvGezMd1RspEbjOj/p6wcr5awO1Dc/h7Z9.lFAL/jH1','admin','ak_6762248a938d69d7','2023-12-22 10:13: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=9584;

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


