-- Host: db-master-2.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=26845;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$3GNNpzHkWJe3v/g.MitZrW8BoKY58D.dpQmBohvFwyxaqYJ7BoKB5','user','ak_08301f6f13633acc','2023-01-06 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$rXhKhjr8oVL.STl1E191SM1PKxFhX2wxsmaeI/ig3g8oz6eULvBw7','user','ak_c53b1ca973ac46d7','2023-03-02 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$UdWakq.f2FwrJ/0..XWSTH8EUV.54UqkslBVLt9YukFmLtwkdspgD','user','ak_ee00bdfa0a22984c','2023-11-25 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$c.QNPEfrR4cUYRU2hQtgdYMv77apJYleDzk9W453J.5uuN7H5wGIW','user','ak_6b410f89e4e2401c','2023-04-16 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$LLVaX09WKY8MlMB4dbebT3M9xYGZTvtWQb9tcraHhzPvAVoaAs5lH','user','ak_89bd59af0449185d','2023-12-02 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$YWhx1zKDbQddaBaO9psluI..w/xdQYVzpJvIoedtGhTFOfvzS.9fF','admin','ak_7591be6be3631580','2023-09-28 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=2495;

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


