-- Host: db-master-4.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=21306;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$0WtW.bqwoPOFWy754qZDctiAJ.YLpJlud4K4VRNzwfRm9v4484yl/','admin','ak_ccd785cbed153b07','2023-02-03 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$GNhnyz03azSiabzXWOpX1xd/WMkHBtoUZzRC4cxHkrXkqWTJ1nSfF','user','ak_51163506b0cd7d40','2023-04-11 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$SUS2I5n1K7KgNVXRGKFZcsbdHxDp2Zf4TYW71YWmC/k4ev068IvJW','user','ak_d0e4756d61edb073','2023-12-03 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$oMR.neevERBGNwkx.yNRKdIe7G4BPXSTpBkWI7WlNFNO9DGoJCql/','user','ak_47356f5455264169','2023-12-10 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$p4DTKnUQc.ktopzCQLqWnI/GNwgGuFLJDyBLnqLZnFrdrR3Eb1imh','user','ak_b9235db1a87834cf','2023-11-01 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$woZWMxxop7VBW25tao.THSc0s5Jqhk6aBOD0wPCA78KP8QshA6hex','user','ak_6272fb900bf4af6a','2023-04-03 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$QRqX7GT7g7loMfSAzsXbz5OgvHX1qvPgDYCgKtoAjIArfmqr8aYSD','user','ak_698f6a72501b3d72','2023-02-15 10:19:00',NULL);

