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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$33If0RLlSuVibMOihbzoQjRXaSk7hfpJMI3f7hfSle55l/1u1/2ty','user','ak_a4d3402cd017eb64','2023-10-21 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$ODSoQ4v3T/eH/qEIIiB4zm8eo4ngy6.T8kO99ynaErIlxHrzuJLkW','user','ak_1588bf04c26280d3','2023-08-21 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$tMjS.lUxR8DnjQHXABZff/7meHPbuYPLrjUcr/sd0PZfvE.gC6Ynw','user','ak_c6c723f75eeba3eb','2023-01-21 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$6vSzWho9h7yHWaEqr8Xx52U..StWMnuJBYANM6pnwOkoh5Dy7n2ws','user','ak_942c1e55f4834259','2023-03-06 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$7JFT7bKjjWRRl0aQ7KCpYQMFuuPwq3rOx.nFNQ8dYMfvo/haPRr/4','user','ak_e520d23ee57f5e2d','2023-05-13 10:04:00',NULL);

