-- Host: db-master-3.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$EX0zqOZtBOBlVB7D7hBR0Mcdt9xrxZ5gcUlyj7ZIApcRwtU6kCXIk','user','ak_828abea57f3efad0','2023-06-26 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$UBsFoHaWZ5uzcrz2XqBiFDz8nNMHWFPjCQyNSH4fZpPDSE06l.Sh6','user','ak_e508c78fed67b3fe','2023-02-02 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$Sl.XZ1Vy.xW9uwz4.OHb6ksTwEOERbK/OYimqSidIWUo5F/P6RQzr','user','ak_fa58504dfef496e0','2023-01-22 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$x5Q9dHidY4nw9ASo7UWIGV9zF4IKktMJMuecqUQ6.DFPDM44lXlAI','admin','ak_6710bca775c4062d','2023-05-20 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$x7k5uoNpOf1ppNxRraHk2O88sj4vlOoAz1eC6hGOHmoM.PAZGvzlx','user','ak_6ca3441c94365acf','2023-12-17 10:19: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=29794;

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


