-- Host: db-master-6.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$KuCBmX71cepfBbcqNwdwV8LiYgeRwItCB5fxvFuVCnyCNJq5COfvB','user','ak_f840dccb6414ac82','2023-03-11 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$HVNTNMRZ3jdYQ52Q7Noe3T3OkZoMHhocGpwh/3iSg0JirPaUFKZFr','user','ak_c5ec1e325f0eb701','2023-05-19 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$W/gsmXVJ3Qj7N5C.VhMasMQ4GQVk0mitxgZJtMezu8W17UJb24qXr','user','ak_3ded43957644189e','2023-04-04 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$xddezk.w7IUHTFnRwbcCoQQxMkn2JBNE59NVFbqfOw9svyDcqSyKA','admin','ak_62000fec003e59f6','2023-02-06 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$LldfkpkpYylwiCJlF1WwyFeEj47Spge.CCyTOnYGvLV3CbIbka3zX','user','ak_71db90b3a4aaa68c','2023-07-26 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$GSWxikWUAY3hNToBGvu93IqKpPSCAPAiLXP5dvuWHyBSFC75F4Qx4','user','ak_829cdd1413a252a5','2023-05-03 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@internal.io','$2b$12$PT5yW6aQgmIARkK8/1oNVwDgebp/Ycq6RvLZ8Rd52i9a/GW6xGd91','user','ak_f2b3e24bb3b9385b','2023-12-18 10:04:00',NULL);

