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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$0h3gyhZtifpPgOhlTfrukgvrktckye8MR/QhYywpOhop87jJ8fZCL','admin','ak_7c65d6bc6f839e8e','2023-08-04 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$rD/sky92KhxTfdrrzLieLGeYu2c/WT3wc0xPHv7YNHgzXkGcB8UiA','user','ak_a0b33942fb192213','2023-12-07 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$737/jzNpfD/a8JSfMo3HYZbcwmxCgaqOpD2pP1oLHVoP6PchW1AKg','admin','ak_98f4272279a52230','2023-10-10 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$gVXWbcpXIGIpF5F.vk7t0RUVWDCB1bk4gxQ31rQHSCJuKREmJAskR','user','ak_b0f20895dc466550','2023-11-18 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$l9zAQHBQgfrFx8J05LSnKbHHd9e6fIgg.KpoHRj01sFaLBS4x1XVc','user','ak_fb6b414c1a08ba5c','2023-09-28 10:16:00',NULL);

