-- Host: db-master-4.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=3546;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$E/.O8kPsDqR3UAN103NhEBmXGiPVlY0Pt7OAPw4nATGUq2JdQ6BFH','admin','ak_2d42a21731925afb','2023-06-15 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$/.xHKFvtiuvoa5j/lKsVEwehcC.7ZwHCUDA36JQ7sHK.OSZFEyqcD','user','ak_91c28dcb005f7bf0','2023-05-05 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$zo1ZSLg70rOMuUrt7yh6BweTmKI3rW.X/uvv1YePdw3ZGh9ioC5.S','user','ak_2bc31013c1e746ef','2023-05-26 10:13:00',NULL);

