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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$V0bGjjxUzkDpbVUZoWSp2fFSwJM9lRl6dOOfGvfsjZAa5HfE7zpUB','admin','ak_7681b8469ff92fc9','2023-06-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$nJ/r5Ucytm4DzeXI3bWWdRVRAo7tWQoUAEqToKb.d1NnOKkI2hPws','user','ak_6055b928c19ae38f','2023-04-09 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$8th9ZzjSH7f0/sHiS9RYiHy6ulhFtZFLXxiN4D.ZqBM8.zoCZvnxl','user','ak_0db2ed62524703ef','2023-12-04 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$YFMtiG1wukAt7Tl.IrC76hyKE6hl8mieVWd.Y/98sSFCYK5MW9vCe','user','ak_edf3d744a71e5d87','2023-01-20 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$30/zZnwzid5dd6hXWfnq6/Oqj3xH8bHRiViT0ef5Gvs6eMMOqO7wY','user','ak_bdd6d752311ff84b','2023-03-02 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$5KcEaEM4cfORF6Y804sRYuDguv3N.fIiRkYAPh9tXjbCX0Soaxtid','admin','ak_b36ea4f375f8c0c3','2023-07-04 10:20:00',NULL);

