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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$XH7EqdiYVov0sSOz1iFB3K7k4VUgzS5blAGIBSweyuMebtHs/urhg','user','ak_3eaa90db480fd6b5','2023-01-12 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$vlPbEs.p4b9EWxjB7wS51H6LSZWYI8dX4ey28GwET/un1nw5b48Jb','user','ak_12efb2db8cfd40a4','2023-09-17 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$etkOGoYx2pt0jx4WF50lui/IaZEYhWxd2Sgg7cg.kmjtmXKDlyIws','admin','ak_9a6b07ec3026c91e','2023-10-01 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$ShcEpDZJTkkVPTZWZh3SHoGbv5uscOicN/KLMjbYsUyVEyURyxV36','admin','ak_8a636712e4fc8454','2023-04-25 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$Wqe7dZRJdgv1pp0mRon4VfrJXivJNdhIuP8XZ1VyHFUooo8.l.kro','user','ak_33068d19a3466647','2023-03-03 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$cAHj7A4qRYaJw0Avf6Pbg1rK6Fm1vkabwF/3BwRwPEWIHxItKROib','user','ak_a8020df7bc4211fa','2023-08-02 10:04: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=3607;

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


