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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$Fj5t3m1jKW28DJ7FI.OljWVuQvq4uVkCIGqiMz785siJDpQMLS8KS','admin','ak_8914ae1898177aa8','2023-10-17 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$oXtSYa24QJSbWcGDckOX5mE7g32mBfvqiG/jmbWwq6CKMkHRM6xE.','user','ak_41c2df24ce718e2a','2023-09-22 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$gOTE91EQEY87UeQl7u8XrhM1zqEac3cIk7QFIdwjHBNQ/G4ESPNA7','user','ak_3ff250665af94ffc','2023-09-01 10:14:00',NULL);

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

--
-- Dumping data for table `products`
--


