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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$iFDNHUq1vnu9GW.dTvEtSIEQPtlUCV43nOxpmjtkFqDablIhWb3hO','user','ak_ddb864f0e984741e','2023-01-14 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$m/O/D1g4SrOEx8x0syWTPM1K669hoUzMKcXIJvWrhYRXjU/1iqGmO','admin','ak_c99fe998a47e38ff','2023-07-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$KaU.QlVWrny19HwanCD962S4ykOEjgjV9T2Wa.2V2QGmTZUOcZlLs','admin','ak_83bc885a0324732a','2023-08-23 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$iB.KEK0P/NDrLRn6qfYQC9RN9sK4vKZPIEoTKRo7YxKP2NvgI6Byx','user','ak_9051be942119ef8d','2023-06-27 10:12:00',NULL);

