-- Host: db-master-8.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$2hKzNjKkVqlZnjr3eYS80emBibChvcwO7g0nkrsbF0Un2moHWbLmH','admin','ak_945ecbc300204f39','2023-04-06 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$rZOQk9kvsILVs/ONyIJMOGAneOtXwnP9XEWmrY136JW60tZV96tT8','user','ak_709ab78b2458f78c','2023-06-26 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$xJXiL/ETVCF38ObzDUA5C7.uPXVDPU9UVN9IC..28/GwwEFRBYwrD','user','ak_f407821cae6982ac','2023-01-11 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$hdZEd5xLwbdGK8FookozE9aKm8QMzmWRCdoCPd15TSx52O5DbAJav','admin','ak_49f401bd021ed9d4','2023-07-10 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$I/XpARbNQXyKIun7rB0d/bZwjxVf/3ulv5cu7UAETDnju28y0AisF','user','ak_cca018c546a13475','2023-05-20 10:09:00',NULL);

