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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$ZjY3A3zersHqz1AX9b5M9PUuSdwZEBaTWSCMGuYVmKNGhzk2sIC3W','user','ak_e4966389141b90b9','2023-05-06 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$kj9oF8VRI8yXPWk/SexBOLRCgjTPniuN9j5xbwXxHEI1pe1331Rvn','admin','ak_438fa8d4b1844291','2023-05-26 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$rmC.oa85/FtWN2Tj3zPIecYbZ2efE4HMR7yxz1vIc3YuX0lTjfTvQ','user','ak_525bd2f07d6122ab','2023-02-25 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$b.PYaLqgJyrb4IJFtTT1twxfaNkAsocUVxwLfCZaBI.kYhxy8UJgP','user','ak_e0c027bde1eff21a','2023-09-26 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$05kEL.ffd86kbfB.C4Qqf.0zqNLPEVSow4k5mS6UAFIuxH1efqoap','admin','ak_8000efd4aea72730','2023-06-26 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$m7KYfdW6cErxFS9UeTGN.oVHjZlI5lyDwnMa5gF900YmX8z4b0Mav','user','ak_94e39cfea919b02f','2023-03-04 10:19:00',NULL);

