-- Host: db-master-2.internal    Database: production_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=40657;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$NeKlDbPUkD/yE2KuSXG8n54iRE8DS1HaqjVm97nGoF8hS0qcmC8a0','user','ak_a847376c3764fd43','2023-11-20 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$v9.pK9BfjNPS/RYE8UlbO0Sr96Ar7.DCFunBdihxaxdbAeAUuUOAB','admin','ak_8d55b3c68c5ded9c','2023-11-07 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$mmEXSTuoUN9kK895c5UllJwfhHcdHq6OtkhV6fvNunF1T1obWV8Mq','admin','ak_f0d2bb2b4a4cd64e','2023-03-27 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$AmsytuX79WiQTaD8R5JZKtthEWa4IVJYjOr0vhQQ7uhwYWkb618Jk','user','ak_3fa1d70ca0483aea','2023-10-09 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$WjoKhISXcowxE0nbbT8SSY6guPXt06wa9D6OkVwVKta/OsiK28rD.','admin','ak_18181e19b0cbd430','2023-02-14 10:21:00',NULL);

